Class: Rgviz::Row
- Inherits:
-
Object
- Object
- Rgviz::Row
- Defined in:
- lib/rgviz/table.rb
Instance Attribute Summary collapse
-
#c ⇒ Object
Returns the value of attribute c.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(attributes = {}) ⇒ Row
Returns a new instance of Row.
38 39 40 41 42 43 44 45 46 |
# File 'lib/rgviz/table.rb', line 38 def initialize(attributes = {}) if attributes.empty? @c = [] else attributes.each do |key, value| self.send "#{key}=", value end end end |
Instance Attribute Details
#c ⇒ Object
Returns the value of attribute c.
36 37 38 |
# File 'lib/rgviz/table.rb', line 36 def c @c end |