module TrueConf::Optional
Public Class Methods
new(opts)
click to toggle source
Calls superclass method
# File lib/true-conf/optional.rb, line 7 def initialize(opts) super opts.each_with_object({}) { |(key, val), obj| obj[key.to_sym] = val } end
Private Instance Methods
__options__()
click to toggle source
# File lib/true-conf/optional.rb, line 11 def __options__ @__options__ ||= self.class.dry_initializer.attributes(self) end
method_missing(*args, &block)
click to toggle source
Calls superclass method
# File lib/true-conf/optional.rb, line 19 def method_missing(*args, &block) respond_to_missing?(*args) ? __options__.send(*args, &block) : super end
respond_to_missing?(name, *)
click to toggle source
# File lib/true-conf/optional.rb, line 15 def respond_to_missing?(name, *) __options__.respond_to? name end