Class: Sinclair::Options
- Inherits:
-
Object
- Object
- Sinclair::Options
- Defined in:
- lib/sinclair/options.rb,
lib/sinclair/options/builder.rb
Defined Under Namespace
Classes: Builder
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(options = {}) ⇒ Options
Returns a new instance of Options.
20 21 22 23 24 25 26 |
# File 'lib/sinclair/options.rb', line 20 def initialize( = {}) () .each do |key, value| instance_variable_set("@#{key}", value) end end |
Class Method Details
.options ⇒ Object
8 9 10 |
# File 'lib/sinclair/options.rb', line 8 def ||= [] end |