Class: SerializedValue
Instance Method Summary collapse
Methods inherited from Value
Constructor Details
This class inherits a constructor from Value
Instance Method Details
#precondition? ⇒ Boolean
31 32 33 |
# File 'lib/serializer/value.rb', line 31 def precondition? @scope.respond_to?(extraction_key) end |
#value ⇒ Object
35 36 37 |
# File 'lib/serializer/value.rb', line 35 def value @scope.public_send(extraction_key) end |