Class: ObjectValue
Instance Method Summary collapse
Methods inherited from Value
Constructor Details
This class inherits a constructor from Value
Instance Method Details
#precondition? ⇒ Boolean
51 52 53 |
# File 'lib/serializer/value.rb', line 51 def precondition? @scope.respond_to?(extraction_key) end |
#value ⇒ Object
55 56 57 |
# File 'lib/serializer/value.rb', line 55 def value @scope.public_send(extraction_key) end |