Class: Cryptozoologist::Configuration
- Inherits:
-
Object
- Object
- Cryptozoologist::Configuration
- Defined in:
- lib/cryptozoologist/configuration.rb
Instance Attribute Summary collapse
-
#delimiter ⇒ Object
Returns the value of attribute delimiter.
-
#exclude ⇒ Object
Returns the value of attribute exclude.
-
#include ⇒ Object
Returns the value of attribute include.
-
#order ⇒ Object
Returns the value of attribute order.
Instance Method Summary collapse
- #include_quantity? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/cryptozoologist/configuration.rb', line 5 def initialize @exclude = [] @delimiter = "-" @order = [:colors, :animals, :clothing] @include = [] end |
Instance Attribute Details
#delimiter ⇒ Object
Returns the value of attribute delimiter.
3 4 5 |
# File 'lib/cryptozoologist/configuration.rb', line 3 def delimiter @delimiter end |
#exclude ⇒ Object
Returns the value of attribute exclude.
3 4 5 |
# File 'lib/cryptozoologist/configuration.rb', line 3 def exclude @exclude end |
#include ⇒ Object
Returns the value of attribute include.
3 4 5 |
# File 'lib/cryptozoologist/configuration.rb', line 3 def include @include end |
#order ⇒ Object
Returns the value of attribute order.
3 4 5 |
# File 'lib/cryptozoologist/configuration.rb', line 3 def order @order end |
Instance Method Details
#include_quantity? ⇒ Boolean
40 41 42 |
# File 'lib/cryptozoologist/configuration.rb', line 40 def include_quantity? @include.include?(:quantity) end |