Class: HashValue
Instance Method Summary collapse
Methods inherited from Value
Constructor Details
This class inherits a constructor from Value
Instance Method Details
#precondition? ⇒ Boolean
41 42 43 |
# File 'lib/serializer/value.rb', line 41 def precondition? @scope.is_a?(Hash) && @scope.key?(extraction_key) end |
#value ⇒ Object
45 46 47 |
# File 'lib/serializer/value.rb', line 45 def value @scope.fetch(extraction_key) end |