Class: Nanaimo::Data
Overview
A data object in a Plist, represented by a binary-encoded string.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
- #as_ruby ⇒ Object
-
#initialize(value, annotation) ⇒ Data
constructor
A new instance of Data.
Methods inherited from Object
Constructor Details
#initialize(value, annotation) ⇒ Data
Returns a new instance of Data.
77 78 79 80 |
# File 'lib/nanaimo/object.rb', line 77 def initialize(value, annotation) value &&= value.dup.force_encoding(Encoding::BINARY) super(value, annotation) end |
Instance Method Details
#as_ruby ⇒ Object
82 83 84 |
# File 'lib/nanaimo/object.rb', line 82 def as_ruby value end |