Class: Abid::MixinTask

Inherits:
Rake::Task
  • Object
show all
Defined in:
lib/abid/mixin_task.rb

Defined Under Namespace

Classes: Mixin

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#mixin_definitionObject

Returns the value of attribute mixin_definition.



13
14
15
# File 'lib/abid/mixin_task.rb', line 13

def mixin_definition
  @mixin_definition
end

Class Method Details

.define_mixin(*args, &block) ⇒ Object

:nodoc:



24
25
26
# File 'lib/abid/mixin_task.rb', line 24

def define_mixin(*args, &block) # :nodoc:
  Rake.application.define_mixin(self, *args, &block)
end

Instance Method Details

#execute(_args = nil) ⇒ Object



19
20
21
# File 'lib/abid/mixin_task.rb', line 19

def execute(_args = nil)
  fail 'mixin is not executable'
end

#mixinObject



15
16
17
# File 'lib/abid/mixin_task.rb', line 15

def mixin
  @mixin ||= Mixin.new(self, &mixin_definition)
end