Class: Csb::Template
- Inherits:
-
Object
- Object
- Csb::Template
- Defined in:
- lib/csb/template.rb
Instance Attribute Summary collapse
-
#cols ⇒ Object
Returns the value of attribute cols.
-
#csv_options ⇒ Object
Returns the value of attribute csv_options.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#items ⇒ Object
Returns the value of attribute items.
-
#streaming ⇒ Object
Returns the value of attribute streaming.
-
#utf8_bom ⇒ Object
Returns the value of attribute utf8_bom.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(streaming:) ⇒ Template
constructor
A new instance of Template.
- #streaming? ⇒ Boolean
Constructor Details
Instance Attribute Details
#cols ⇒ Object
Returns the value of attribute cols.
3 4 5 |
# File 'lib/csb/template.rb', line 3 def cols @cols end |
#csv_options ⇒ Object
Returns the value of attribute csv_options.
3 4 5 |
# File 'lib/csb/template.rb', line 3 def @csv_options end |
#filename ⇒ Object
Returns the value of attribute filename.
3 4 5 |
# File 'lib/csb/template.rb', line 3 def filename @filename end |
#items ⇒ Object
Returns the value of attribute items.
3 4 5 |
# File 'lib/csb/template.rb', line 3 def items @items end |
#streaming ⇒ Object
Returns the value of attribute streaming.
3 4 5 |
# File 'lib/csb/template.rb', line 3 def streaming @streaming end |
#utf8_bom ⇒ Object
Returns the value of attribute utf8_bom.
3 4 5 |
# File 'lib/csb/template.rb', line 3 def utf8_bom @utf8_bom end |
Instance Method Details
#build ⇒ Object
11 12 13 |
# File 'lib/csb/template.rb', line 11 def build streaming ? build_enumerator : build_string end |
#streaming? ⇒ Boolean
15 16 17 |
# File 'lib/csb/template.rb', line 15 def streaming? !!streaming end |