Class: Prawn::LabelSheet::Configuration
- Inherits:
-
Object
- Object
- Prawn::LabelSheet::Configuration
- Defined in:
- lib/prawn/label_sheet/configuration.rb
Overview
config options
Instance Attribute Summary collapse
-
#default_layout ⇒ String
Default layout key.
-
#layouts ⇒ {String => Hash}
Layout definitions.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 |
# File 'lib/prawn/label_sheet/configuration.rb', line 14 def initialize @default_layout = 'Avery7160' end |
Instance Attribute Details
#default_layout ⇒ String
Default layout key
11 12 13 |
# File 'lib/prawn/label_sheet/configuration.rb', line 11 def default_layout @default_layout end |
#layouts ⇒ {String => Hash}
Layout definitions
21 22 23 |
# File 'lib/prawn/label_sheet/configuration.rb', line 21 def layouts @layouts ||= YAML.load_file(File.('layouts.yml', __dir__)) end |