Class: Sinclair::Settable::Builder Private
- Defined in:
- lib/sinclair/settable/builder.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Env setting methods builder
This builder does the magic of adding methods that will fetch variables from env or a default value
Constant Summary
Constants inherited from Sinclair
Instance Attribute Summary
Attributes inherited from Sinclair
Attributes included from OptionsParser
Instance Method Summary collapse
-
#initialize(klass, *settings_name, **options) ⇒ Builder
constructor
private
A new instance of Builder.
Methods inherited from Sinclair
#add_class_method, #add_method, #build, build, #eval_and_add_method
Methods included from ClassMethods
Methods included from OptionsParser
Constructor Details
#initialize(klass, *settings_name, **options) ⇒ Builder
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Builder.
24 25 26 27 28 29 30 |
# File 'lib/sinclair/settable/builder.rb', line 24 def initialize(klass, *settings_name, **) super(klass, **) @settings = settings_name add_all_methods end |