Class: Uber::Builder::Constant

Inherits:
Object
  • Object
show all
Defined in:
lib/uber/builder.rb

Instance Method Summary collapse

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