Class: StrokeDB::Slot
Constant Summary collapse
- DUMP_PREFIX =
"@!Dump:".freeze
- DUMP_PREFIX_RE =
/^#{DUMP_PREFIX}/.freeze
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(doc, name = nil) ⇒ Slot
constructor
A new instance of Slot.
- #raw_value=(v) ⇒ Object
- #to_raw ⇒ Object
Constructor Details
#initialize(doc, name = nil) ⇒ Slot
Returns a new instance of Slot.
96 97 98 99 |
# File 'lib/strokedb/document/slot.rb', line 96 def initialize(doc, name = nil) @doc, @name = doc, name @decoded = {} end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
91 92 93 |
# File 'lib/strokedb/document/slot.rb', line 91 def doc @doc end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
91 92 93 |
# File 'lib/strokedb/document/slot.rb', line 91 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
91 92 93 |
# File 'lib/strokedb/document/slot.rb', line 91 def value @value end |