Class: TableCloth::ColumnJury
- Inherits:
-
Object
- Object
- TableCloth::ColumnJury
- Defined in:
- lib/table_cloth/column_jury.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
- #available? ⇒ Boolean
-
#initialize(column, table) ⇒ ColumnJury
constructor
A new instance of ColumnJury.
- #options ⇒ Object
Constructor Details
#initialize(column, table) ⇒ ColumnJury
Returns a new instance of ColumnJury.
5 6 7 |
# File 'lib/table_cloth/column_jury.rb', line 5 def initialize(column, table) @column, @table = column, table end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
3 4 5 |
# File 'lib/table_cloth/column_jury.rb', line 3 def column @column end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
3 4 5 |
# File 'lib/table_cloth/column_jury.rb', line 3 def table @table end |
Instance Method Details
#available? ⇒ Boolean
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/table_cloth/column_jury.rb', line 9 def available? if [:if] && [:if].is_a?(Symbol) return !!table.send([:if]) end if [:unless] && [:unless].is_a?(Symbol) return !table.send([:unless]) end true end |
#options ⇒ Object
21 22 23 |
# File 'lib/table_cloth/column_jury.rb', line 21 def column. end |