Changeset 244

Show
Ignore:
Timestamp:
10/31/05 07:35:16 (3 years ago)
Author:
ged
Message:

- Added call of class method from within instance.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/experiments/class-method-visibility.rb

    r231 r244  
    44# from instances. 
    55#  
    6 # Time-stamp: <09-Jun-2005 23:54:38 ged> 
     6# Time-stamp: <10-Sep-2005 19:14:41 ged> 
    77# 
    88 
     
    2323        $defout.puts "In bar_instance_method" 
    2424    end 
     25 
     26    def call_bar_class_method 
     27        bar_class_method() 
     28    end 
    2529end 
    2630 
     
    3640 
    3741 
     42try( "call_bar_class_method" ) { 
     43    obj.call_bar_class_method 
     44} 
     45