Class: Rgviz::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/rgviz/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cObject

Returns the value of attribute c.



36
37
38
# File 'lib/rgviz/table.rb', line 36

def c
  @c
end