Class: Faith::DSL::MixinBuilder
- Inherits:
-
Object
- Object
- Faith::DSL::MixinBuilder
- Defined in:
- lib/faith/dsl.rb
Instance Method Summary collapse
- #after(&block) ⇒ Object
- #before(&block) ⇒ Object
-
#initialize(name, parent) ⇒ MixinBuilder
constructor
A new instance of MixinBuilder.
- #result ⇒ Object
Constructor Details
#initialize(name, parent) ⇒ MixinBuilder
Returns a new instance of MixinBuilder.
54 55 56 |
# File 'lib/faith/dsl.rb', line 54 def initialize(name, parent) @mixin = Mixin.new(name, parent) end |
Instance Method Details
#after(&block) ⇒ Object
62 63 64 |
# File 'lib/faith/dsl.rb', line 62 def after(&block) @mixin.after = block end |
#before(&block) ⇒ Object
58 59 60 |
# File 'lib/faith/dsl.rb', line 58 def before(&block) @mixin.before = block end |
#result ⇒ Object
66 67 68 |
# File 'lib/faith/dsl.rb', line 66 def result @mixin end |