Class: Jekyll::KargWare::LoremIpsum::Configuration
- Inherits:
-
Object
- Object
- Jekyll::KargWare::LoremIpsum::Configuration
- Defined in:
- lib/jekyll-kw-loremipsum/configuration.rb
Overview
LoremIpsum configuration class
Constant Summary collapse
- DEFAULT_CONFIG =
{ 'my_integer' => 1, 'my_float' => 2.4, 'my_boolean' => true, 'my_string' => 'foo bar' }.freeze
Instance Attribute Summary collapse
-
#my_boolean ⇒ Object
Returns the value of attribute my_boolean.
-
#my_float ⇒ Object
Returns the value of attribute my_float.
-
#my_integer ⇒ Object
Returns the value of attribute my_integer.
-
#my_string ⇒ Object
Returns the value of attribute my_string.
Instance Method Summary collapse
-
#initialize(options) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options) ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 23 24 |
# File 'lib/jekyll-kw-loremipsum/configuration.rb', line 17 def initialize() = generate_option_hash() @my_integer = ['my_integer'] @my_float = ['my_float'] @my_boolean = ['my_boolean'] @my_string = ['my_string'] end |
Instance Attribute Details
#my_boolean ⇒ Object
Returns the value of attribute my_boolean.
8 9 10 |
# File 'lib/jekyll-kw-loremipsum/configuration.rb', line 8 def my_boolean @my_boolean end |
#my_float ⇒ Object
Returns the value of attribute my_float.
8 9 10 |
# File 'lib/jekyll-kw-loremipsum/configuration.rb', line 8 def my_float @my_float end |
#my_integer ⇒ Object
Returns the value of attribute my_integer.
8 9 10 |
# File 'lib/jekyll-kw-loremipsum/configuration.rb', line 8 def my_integer @my_integer end |
#my_string ⇒ Object
Returns the value of attribute my_string.
8 9 10 |
# File 'lib/jekyll-kw-loremipsum/configuration.rb', line 8 def my_string @my_string end |