Class: GeoPattern::RakeTask

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

Overview

Rake Task

This task can be used to generate pattern files

Direct Known Subclasses

GeoPatternTask

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description


18
19
20
# File 'lib/geo_pattern/rake_task.rb', line 18

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name


14
15
16
# File 'lib/geo_pattern/rake_task.rb', line 14

def name
  @name
end

#verboseObject (readonly)

Returns the value of attribute verbose


23
24
25
# File 'lib/geo_pattern/rake_task.rb', line 23

def verbose
  @verbose
end

#verbose (true)(true) ⇒ Object (readonly)

Use verbose output. If this is set to true, the task will print the executed spec command to stdout.


23
# File 'lib/geo_pattern/rake_task.rb', line 23

attr_reader :verbose

Instance Method Details

#include(modules) ⇒ Object

Include module in instance


101
102
103
104
105
# File 'lib/geo_pattern/rake_task.rb', line 101

def include(modules)
  modules = Array(modules)

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

#instance_bindingObject

Binding to instance


96
97
98
# File 'lib/geo_pattern/rake_task.rb', line 96

def instance_binding
  binding
end