class Struct
Public Instance Methods
attributes()
click to toggle source
# File lib/lite/ruby/struct.rb, line 5 def attributes each_pair.with_object({}) { |(key, val), hash| hash[key] = val } end
replace(args)
click to toggle source
# File lib/lite/ruby/struct.rb, line 9 def replace(args) args.each_pair { |key, val| self[key] = val } end