Class: Rgviz::Cell
- Inherits:
-
Object
- Object
- Rgviz::Cell
- Defined in:
- lib/rgviz/table.rb
Instance Attribute Summary collapse
-
#f ⇒ Object
Returns the value of attribute f.
-
#p ⇒ Object
Returns the value of attribute p.
-
#v ⇒ Object
Returns the value of attribute v.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Cell
constructor
A new instance of Cell.
Constructor Details
#initialize(attributes = {}) ⇒ Cell
Returns a new instance of Cell.
54 55 56 57 58 |
# File 'lib/rgviz/table.rb', line 54 def initialize(attributes = {}) attributes.each do |key, value| self.send "#{key}=", value end end |
Instance Attribute Details
#f ⇒ Object
Returns the value of attribute f.
51 52 53 |
# File 'lib/rgviz/table.rb', line 51 def f @f end |
#p ⇒ Object
Returns the value of attribute p.
52 53 54 |
# File 'lib/rgviz/table.rb', line 52 def p @p end |
#v ⇒ Object
Returns the value of attribute v.
50 51 52 |
# File 'lib/rgviz/table.rb', line 50 def v @v end |