Class: Xcake::Generator

Inherits:
Object show all
Includes:
Dependency, Plugin, Visitor
Defined in:
lib/xcake/generator.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Visitor

#item_name, #leave, #visit

Methods included from Plugin

included

Methods included from Dependency

included

Constructor Details

#initialize(context) ⇒ Generator

Returns a new instance of Generator.



9
10
11
# File 'lib/xcake/generator.rb', line 9

def initialize(context)
  self.context = context
end

Instance Attribute Details

#contextObject

Returns the value of attribute context.



7
8
9
# File 'lib/xcake/generator.rb', line 7

def context
  @context
end

Class Method Details

.plugins_locationObject



13
14
15
# File 'lib/xcake/generator.rb', line 13

def self.plugins_location
  "#{File.dirname(__FILE__)}/generator/*.rb"
end