Class: Portable::Modeling::Options
- Inherits:
-
Object
- Object
- Portable::Modeling::Options
- Defined in:
- lib/portable/modeling/options.rb
Overview
Defines all the options for an export including static header rows, footer rows, and how to draw the data table.
Instance Attribute Summary collapse
-
#byte_order_mark ⇒ Object
readonly
Returns the value of attribute byte_order_mark.
Instance Method Summary collapse
- #byte_order_mark? ⇒ Boolean
-
#initialize(byte_order_mark: nil) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(byte_order_mark: nil) ⇒ Options
Returns a new instance of Options.
21 22 23 24 25 |
# File 'lib/portable/modeling/options.rb', line 21 def initialize(byte_order_mark: nil) @byte_order_mark = ByteOrderMark.resolve(byte_order_mark) freeze end |
Instance Attribute Details
#byte_order_mark ⇒ Object (readonly)
Returns the value of attribute byte_order_mark.
19 20 21 |
# File 'lib/portable/modeling/options.rb', line 19 def byte_order_mark @byte_order_mark end |
Instance Method Details
#byte_order_mark? ⇒ Boolean
27 28 29 |
# File 'lib/portable/modeling/options.rb', line 27 def byte_order_mark? !byte_order_mark.nil? end |