Class: Nebulous::Chunk
- Inherits:
-
Array
- Object
- Array
- Nebulous::Chunk
- Defined in:
- lib/nebulous/chunk.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #full? ⇒ Boolean
-
#initialize(*args) ⇒ Chunk
constructor
A new instance of Chunk.
Constructor Details
#initialize(*args) ⇒ Chunk
Returns a new instance of Chunk.
5 6 7 8 |
# File 'lib/nebulous/chunk.rb', line 5 def initialize(*args) @options = args. super end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/nebulous/chunk.rb', line 3 def @options end |
Instance Method Details
#full? ⇒ Boolean
10 11 12 |
# File 'lib/nebulous/chunk.rb', line 10 def full? .has_key?(:size) && [:size] == size end |