Class: DeepDouble::Literal
- Inherits:
-
Object
- Object
- DeepDouble::Literal
- Defined in:
- lib/deep_double/literal.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Literal
constructor
A new instance of Literal.
Constructor Details
#initialize(value) ⇒ Literal
Returns a new instance of Literal.
17 18 19 |
# File 'lib/deep_double/literal.rb', line 17 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
15 16 17 |
# File 'lib/deep_double/literal.rb', line 15 def value @value end |