Class: TrianglePattern::RakeTask

Inherits:
Rake::TaskLib
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/triangle_pattern/rake_task.rb

Direct Known Subclasses

TriangleTask

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



11
12
13
# File 'lib/triangle_pattern/rake_task.rb', line 11

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/triangle_pattern/rake_task.rb', line 9

def name
  @name
end

#verboseObject (readonly)

Returns the value of attribute verbose.



13
14
15
# File 'lib/triangle_pattern/rake_task.rb', line 13

def verbose
  @verbose
end

Instance Method Details

#include(modules) ⇒ Object

Include module in instance



68
69
70
71
72
# File 'lib/triangle_pattern/rake_task.rb', line 68

def include(modules)
  modules = Array(modules)

  modules.each { |m| self.class.include m }
end

#instance_bindingObject



63
64
65
# File 'lib/triangle_pattern/rake_task.rb', line 63

def instance_binding
  binding
end