class Moguro::Values
Wrapper class for Arguments @since 0.0.1 @private
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/moguro/values.rb, line 10 def initialize super([]) end
Public Instance Methods
add_value(key, value, missing: false)
click to toggle source
# File lib/moguro/values.rb, line 20 def add_value(key, value, missing: false) self << Value.new(key, value, missing: missing) end
inspect()
click to toggle source
# File lib/moguro/values.rb, line 24 def inspect map(&:inspect) end
to_h()
click to toggle source
# File lib/moguro/values.rb, line 14 def to_h each_with_object({}) do |value_class, hash| hash[value_class.key] = value_class.value end end