Class: Automerge::Bytes

Inherits:
Scalar
  • Object
show all
Defined in:
lib/automerge.rb

Instance Attribute Summary

Attributes inherited from Scalar

#value

Instance Method Summary collapse

Methods inherited from Scalar

#==

Constructor Details

#initialize(value) ⇒ Bytes

Returns a new instance of Bytes.



25
26
27
# File 'lib/automerge.rb', line 25

def initialize(value)
  @value = String(value).b
end