Class: Portable::Modeling::Options

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_markObject (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

Returns:

  • (Boolean)


27
28
29
# File 'lib/portable/modeling/options.rb', line 27

def byte_order_mark?
  !byte_order_mark.nil?
end