Class: Xcake::Generator

Inherits:
Object
  • Object
show all
Extended by:
CoreExtensions::ClassDescendants
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 CoreExtensions::ClassDescendants

descendants

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.



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

def initialize(context)
  self.context = context
end

Instance Attribute Details

#contextObject

Returns the value of attribute context.



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

def context
  @context
end

Class Method Details

.plugins_locationObject



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

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