Class: Danica::DSL::Builder
- Inherits:
-
Object
- Object
- Danica::DSL::Builder
- Defined in:
- lib/danica/dsl/builder.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#claz ⇒ Object
readonly
Returns the value of attribute claz.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(method, claz = nil, base = nil) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(method, claz = nil, base = nil) ⇒ Builder
Returns a new instance of Builder.
8 9 10 11 12 |
# File 'lib/danica/dsl/builder.rb', line 8 def initialize(method, claz = nil, base = nil) @method = method @claz = claz @base = base end |
Instance Attribute Details
#base ⇒ Object (readonly)
Returns the value of attribute base.
6 7 8 |
# File 'lib/danica/dsl/builder.rb', line 6 def base @base end |
#claz ⇒ Object (readonly)
Returns the value of attribute claz.
6 7 8 |
# File 'lib/danica/dsl/builder.rb', line 6 def claz @claz end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
6 7 8 |
# File 'lib/danica/dsl/builder.rb', line 6 def method @method end |
Instance Method Details
#build ⇒ Object
14 15 16 |
# File 'lib/danica/dsl/builder.rb', line 14 def build DSL.register_class(method, clazz) end |