Class: Html::Row

Inherits:
Tag
  • Object
show all
Defined in:
lib/html/row.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Tag

#attributes=, #to_s

Constructor Details

#initialize(cols = Array.new(0, Col.new), **attrs) ⇒ Row

Returns a new instance of Row.



8
9
10
11
12
# File 'lib/html/row.rb', line 8

def initialize(cols = Array.new(0, Col.new), **attrs)
  super(**attrs)

  @cols = cols
end

Instance Attribute Details

#colsObject (readonly)

Returns the value of attribute cols.



6
7
8
# File 'lib/html/row.rb', line 6

def cols
  @cols
end