Class: Rubyvis::NestedArray
Overview
:stopdoc:
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
- #==(var) ⇒ Object
-
#initialize(opts) ⇒ NestedArray
constructor
A new instance of NestedArray.
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
#key ⇒ Object
Returns the value of attribute key.
15 16 17 |
# File 'lib/rubyvis/nest.rb', line 15 def key @key end |
#values ⇒ Object
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 |