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.
-
#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(utf8_bom:, 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 |
#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
12 13 14 |
# File 'lib/csb/template.rb', line 12 def build streaming ? build_enumerator : build_string end |
#streaming? ⇒ Boolean
16 17 18 |
# File 'lib/csb/template.rb', line 16 def streaming? !!streaming end |