Changeset 283

Show
Ignore:
Timestamp:
08/15/08 13:22:24 (3 months ago)
Author:
ged
Message:

Cleaned up FaerieMUD::Organism class.

Location:
trunk
Files:
1 added
3 modified

Legend:

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

    r277 r283  
    1818    def self::bar_class_method 
    1919        $defout.puts "In bar_class_method" 
     20        return :bar_class_method 
    2021    end 
    2122 
    2223    def bar_instance_method 
    2324        $defout.puts "In bar_instance_method" 
     25        return :bar_instance_method 
    2426    end 
    2527 
     
    2931end 
    3032 
    31 obj = Foo::new 
     33obj = Foo.new 
    3234 
    3335try( "to call instance method" ) { 
     
    4446} 
    4547 
     48class Bar < Foo; end 
     49 
     50try( "Bar.bar_class_method" ) 
  • trunk/lib/fm/organism.rb

    r277 r283  
    22#  
    33# This file contains the FaerieMUD::Organism class, a derivative of 
    4 # FaerieMUD::Item. Derivatives of this class are naturally-occurring organic 
     4# FaerieMUD::Item which has an associated Species. Derivatives of this class are naturally-occurring organic 
    55# objects in the game world, and can be generally categorized into animal, 
    66# vegetable, or mineral. 
     
    3434    SVNId = %q$Id$ 
    3535 
    36  
    37     ### Initialize a new organism 
    38     def initialize( args={} ) # :notnew: 
    39         @species = 'protozoa' 
    40         super( args ) 
    41     end 
    42  
    43     ###### 
    44     public 
    45     ###### 
    46  
    47     # The name of the species of this organism 
    48     attr_accessor :species 
    49  
    50  
    51     def noun 
    52          
    53     end 
    54  
    55  
    5636end # class FaerieMUD::Organism 
    5737 
  • trunk/redist

    • Property svn:externals
      •  

        old new  
        33Ruby-WordNet svn://deveiate.org/Ruby-WordNet/trunk 
        44Ruby-LinkParser svn://deveiate.org/Ruby-LinkParser2/trunk 
        5 svnwatch http://svn.pdxruby.org/repos/pdxrbot/svnwatch