Class: Nebulous::Chunk

Inherits:
Array
  • Object
show all
Defined in:
lib/nebulous/chunk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.extract_options!
  super
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/nebulous/chunk.rb', line 3

def options
  @options
end

Instance Method Details

#full?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/nebulous/chunk.rb', line 10

def full?
  options.has_key?(:size) && options[:size] == size
end