Class: Rubyvis::NestedArray

Inherits:
Object show all
Defined in:
lib/rubyvis/nest.rb

Overview

:stopdoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ NestedArray

Returns a new instance of NestedArray.



16
17
18
19
# File 'lib/rubyvis/nest.rb', line 16

def initialize(opts)
  @key=opts[:key]
  @values=opts[:values]
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



15
16
17
# File 'lib/rubyvis/nest.rb', line 15

def key
  @key
end

#valuesObject

Returns the value of attribute values.



15
16
17
# File 'lib/rubyvis/nest.rb', line 15

def values
  @values
end

Instance Method Details

#==(var) ⇒ Object



20
21
22
# File 'lib/rubyvis/nest.rb', line 20

def ==(var)
  key==var.key and values==var.values
end