Object
# File lib/map/struct.rb, line 12 def method_missing(method, *args, &block) method = method.to_s case method when /=$/ key = method.chomp('=') value = args.shift @map[key] = value when /\?$/ key = method.chomp('?') value = @map.has?( key ) else key = method raise(IndexError, key) unless @map.has_key?(key) value = @map[key] end value.is_a?(Map) ? value.struct : value end
Generated with the Darkfish Rdoc Generator 2.