Class: Faith::DSL::MixinBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/faith/dsl.rb

Instance Method Summary collapse

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

#resultObject



66
67
68
# File 'lib/faith/dsl.rb', line 66

def result
  @mixin
end