Class: Automerge::Scalar
- Inherits:
-
Object
- Object
- Automerge::Scalar
- Defined in:
- lib/automerge.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ Scalar
constructor
A new instance of Scalar.
Constructor Details
#initialize(value) ⇒ Scalar
Returns a new instance of Scalar.
11 12 13 |
# File 'lib/automerge.rb', line 11 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/automerge.rb', line 9 def value @value end |
Instance Method Details
#==(other) ⇒ Object
15 16 17 |
# File 'lib/automerge.rb', line 15 def ==(other) other.class == self.class && other.value == value end |