Class: StaticValue
Instance Method Summary collapse
Methods inherited from Value
Constructor Details
This class inherits a constructor from Value
Instance Method Details
#precondition? ⇒ Boolean
21 22 23 |
# File 'lib/serializer/value.rb', line 21 def precondition? @attribute..key?(:static_value) end |
#value ⇒ Object
25 26 27 |
# File 'lib/serializer/value.rb', line 25 def value @attribute..fetch(:static_value) end |