Changeset 229
- Timestamp:
- 06/12/05 08:31:47 (3 years ago)
- Files:
-
- 1 modified
-
trunk/lib/fm/properties/fuzzy.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/fm/properties/fuzzy.rb
r224 r229 27 27 ### Fuzzily-valued property class 28 28 class FaerieMUD::Property::Fuzzy < FaerieMUD::Property 29 include Comparable 29 include Comparable, FaerieMUD::Loggable, FaerieMUD::Debuggable 30 30 31 31 # SVN Revision … … 36 36 37 37 # Struct type for storing the low/high description paira 38 PairStruct = Struct::new( "F aerieMUD::Property::PairStruct", :low, :high )38 PairStruct = Struct::new( "FMPairStruct", :low, :high ) 39 39 40 40 … … 53 53 ### in subclasses. 54 54 def self::inherited( subclass ) 55 class << subclass 55 FaerieMUD::Logger[self].debug "Adding descriptionPair ivar to %p" % [subclass] 56 subclass.module_eval { 56 57 @descriptionPair = PairStruct::new() 57 end58 } 58 59 end 59 60 … … 97 98 public 98 99 ###### 100 101 # The raw value of the property 102 attr_reader :value 103 99 104 100 105 ### Comparison operation; returns +true+ when the given +otherProperty+ is
