Class: Phash::Data
- Inherits:
-
Object
- Object
- Phash::Data
- Defined in:
- lib/phash.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
Instance Method Summary collapse
-
#initialize(data, length = nil) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(data, length = nil) ⇒ Data
Returns a new instance of Data.
6 7 8 9 |
# File 'lib/phash.rb', line 6 def initialize(data, length = nil) @data = data @length = length if length end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/phash.rb', line 5 def data @data end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
5 6 7 |
# File 'lib/phash.rb', line 5 def length @length end |