Module: Letterpress
- Defined in:
- lib/letterpress.rb,
lib/letterpress/ghost.rb,
lib/letterpress/railtie.rb,
lib/letterpress/version.rb,
lib/letterpress/blueprint.rb,
lib/letterpress/serial_number.rb,
lib/generators/letterpress/model/model_generator.rb,
lib/generators/letterpress/install/install_generator.rb,
lib/generators/letterpress/install/templates/blueprint.rb
Defined Under Namespace
Modules: Generators, ProxyMethods
Classes: Blueprint, Ghost, Railtie, SerialNumber
Constant Summary
collapse
- VERSION =
"0.0.7"
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.Blueprint(jayz_module) ⇒ Object
6
7
8
9
10
|
# File 'lib/letterpress.rb', line 6
def self.Blueprint(jayz_module)
Class.new(Blueprint) do
include jayz_module
end
end
|
Instance Method Details
#make(*args) ⇒ Object
12
13
14
15
16
|
# File 'lib/letterpress.rb', line 12
def make(*args)
name.split('::').inject(Letterpress) do |klass_level, name|
klass_level.const_get(name)
end.make(*args)
end
|