Class: Force::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/force/config.rb

Defined Under Namespace

Classes: Option

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.optionsObject

Returns the value of attribute options.



78
79
80
# File 'lib/force/config.rb', line 78

def options
  @options
end

Class Method Details

.option(*args) ⇒ Object



80
81
82
83
# File 'lib/force/config.rb', line 80

def option(*args)
  option = Option.define(self, *args)
  (self.options ||= []) << option.name
end

Instance Method Details

#loggerObject



132
133
134
# File 'lib/force/config.rb', line 132

def logger
  @logger ||= ::Logger.new STDOUT
end

#optionsObject



136
137
138
# File 'lib/force/config.rb', line 136

def options
  self.class.options
end