Class: Cryptozoologist::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptozoologist/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#delimiterObject

Returns the value of attribute delimiter.



3
4
5
# File 'lib/cryptozoologist/configuration.rb', line 3

def delimiter
  @delimiter
end

#excludeObject

Returns the value of attribute exclude.



3
4
5
# File 'lib/cryptozoologist/configuration.rb', line 3

def exclude
  @exclude
end

#includeObject

Returns the value of attribute include.



3
4
5
# File 'lib/cryptozoologist/configuration.rb', line 3

def include
  @include
end

#orderObject

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

Returns:

  • (Boolean)


40
41
42
# File 'lib/cryptozoologist/configuration.rb', line 40

def include_quantity?
  @include.include?(:quantity)
end