Class: Table
- Inherits:
-
Object
- Object
- Table
- Defined in:
- lib/fathom/archive/n3.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
-
#legend ⇒ Object
readonly
Returns the value of attribute legend.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(*variables) ⇒ Table
constructor
A new instance of Table.
Constructor Details
#initialize(*variables) ⇒ Table
Returns a new instance of Table.
68 69 70 71 72 73 74 |
# File 'lib/fathom/archive/n3.rb', line 68 def initialize(*variables) @columns = variables.map {|v| v.name} @variables = variables @legend = @variables.inject([]) do |list, e| list = list.(e) end end |
Instance Attribute Details
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
67 68 69 |
# File 'lib/fathom/archive/n3.rb', line 67 def columns @columns end |
#legend ⇒ Object (readonly)
Returns the value of attribute legend.
67 68 69 |
# File 'lib/fathom/archive/n3.rb', line 67 def legend @legend end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
67 68 69 |
# File 'lib/fathom/archive/n3.rb', line 67 def variables @variables end |