Module: LetterPress
- Defined in:
- lib/letter_press.rb,
lib/letter_press/ghost.rb,
lib/letter_press/railtie.rb,
lib/letter_press/version.rb,
lib/letter_press/blueprint.rb,
lib/letter_press/serial_number.rb,
lib/generators/letter_press/model/model_generator.rb,
lib/generators/letter_press/install/install_generator.rb,
lib/generators/letter_press/install/templates/blueprint.rb
Defined Under Namespace
Modules: Generators, ProxyMethods
Classes: Blueprint, Ghost, Railtie, SerialNumber
Constant Summary
collapse
- VERSION =
"0.0.1"
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.Blueprint(jayz_module) ⇒ Object
6
7
8
9
10
|
# File 'lib/letter_press.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/letter_press.rb', line 12
def make(*args)
name.split('::').inject(LetterPress) do |klass_level, name|
klass_level.const_get(name)
end.make(*args)
end
|