Changeset 283
- Timestamp:
- 08/15/08 13:22:24 (3 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 modified
-
experiments/class-method-visibility.rb (modified) (3 diffs)
-
lib/fm/organism.rb (modified) (2 diffs)
-
redist (modified) (1 prop)
-
spec/fm/organism_spec.rb (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/experiments/class-method-visibility.rb
r277 r283 18 18 def self::bar_class_method 19 19 $defout.puts "In bar_class_method" 20 return :bar_class_method 20 21 end 21 22 22 23 def bar_instance_method 23 24 $defout.puts "In bar_instance_method" 25 return :bar_instance_method 24 26 end 25 27 … … 29 31 end 30 32 31 obj = Foo ::new33 obj = Foo.new 32 34 33 35 try( "to call instance method" ) { … … 44 46 } 45 47 48 class Bar < Foo; end 49 50 try( "Bar.bar_class_method" ) -
trunk/lib/fm/organism.rb
r277 r283 2 2 # 3 3 # This file contains the FaerieMUD::Organism class, a derivative of 4 # FaerieMUD::Item . Derivatives of this class are naturally-occurring organic4 # FaerieMUD::Item which has an associated Species. Derivatives of this class are naturally-occurring organic 5 5 # objects in the game world, and can be generally categorized into animal, 6 6 # vegetable, or mineral. … … 34 34 SVNId = %q$Id$ 35 35 36 37 ### Initialize a new organism38 def initialize( args={} ) # :notnew:39 @species = 'protozoa'40 super( args )41 end42 43 ######44 public45 ######46 47 # The name of the species of this organism48 attr_accessor :species49 50 51 def noun52 53 end54 55 56 36 end # class FaerieMUD::Organism 57 37 -
trunk/redist
- Property svn:externals
-
old new 3 3 Ruby-WordNet svn://deveiate.org/Ruby-WordNet/trunk 4 4 Ruby-LinkParser svn://deveiate.org/Ruby-LinkParser2/trunk 5 svnwatch http://svn.pdxruby.org/repos/pdxrbot/svnwatch
-
- Property svn:externals
