class RuneRb::Misc::HashWrapper

Public Class Methods

new(attributes) click to toggle source
# File app/core/util.rb, line 74
def initialize(attributes)
  @attributes = attributes
end

Public Instance Methods

method_missing(name, *args, &blk) click to toggle source
# File app/core/util.rb, line 78
def method_missing(name, *args, &blk)
  if args.empty? && blk.nil? && @attributes.has_key?(name)
    @attributes[name]
  else
    nil
  end
end