Class: CsvBlueprints::Column
- Inherits:
-
Struct
- Object
- Struct
- CsvBlueprints::Column
- Defined in:
- lib/csv_blueprints/blueprint.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/csv_blueprints/blueprint.rb', line 2 def name @name end |
#value ⇒ Object
Returns the value of attribute value
2 3 4 |
# File 'lib/csv_blueprints/blueprint.rb', line 2 def value @value end |
Instance Method Details
#value_for(i) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/csv_blueprints/blueprint.rb', line 3 def value_for(i) if value.respond_to?(:call) value.call(i) else value end end |