Class: Uber::Builder::Constant
- Inherits:
-
Object
- Object
- Uber::Builder::Constant
- Defined in:
- lib/uber/builder.rb
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(constant) ⇒ Constant
constructor
TODO: evaluate usage of builders and implement using Uber::Options::Value.
Constructor Details
#initialize(constant) ⇒ Constant
TODO: evaluate usage of builders and implement using Uber::Options::Value.
32 33 34 35 |
# File 'lib/uber/builder.rb', line 32 def initialize(constant) # TODO: evaluate usage of builders and implement using Uber::Options::Value. @constant = constant @builders = @constant.builders # only dependency, must be a Cell::Base subclass. end |
Instance Method Details
#call(*args) ⇒ Object
37 38 39 |
# File 'lib/uber/builder.rb', line 37 def call(*args) build_class_for(*args) end |