class Kamaze::Project::Struct
Generic struct (ala“ OpenStruct“)
Public Instance Methods
method_missing(method, *args)
click to toggle source
Introduces some strictness on “OpenStruct#method_missing“
@raise [NoMethodError] @see apidock.com/ruby/OpenStruct/method_missing @return [Object]
Calls superclass method
# File lib/kamaze/project/struct.rb, line 19 def method_missing(method, *args) if method[-1] != '=' unless self.to_h.include?(method.to_sym) message = "undefined method `#{method}' for #{self}" raise NoMethodError, message, caller(1) end end super end
respond_to_missing?(method, include_private = false)
click to toggle source
Calls superclass method
# File lib/kamaze/project/struct.rb, line 31 def respond_to_missing?(method, include_private = false) super end