class Purview::Structs::Base
Public Instance Methods
[](key)
click to toggle source
# File lib/purview/structs/base.rb, line 4 def [](key) key = key.to_sym unless key.is_a?(Symbol) raise NoMethodError unless respond_to?(key) send(key) end
[]=(key, value)
click to toggle source
# File lib/purview/structs/base.rb, line 10 def []=(key, value) send("#{key}=", value) end
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/purview/structs/base.rb, line 14 def method_missing(method, *args, &block) method = method.to_sym unless method.is_a?(Symbol) raise NoMethodError if args.empty? && !respond_to?(method) super end