Module: Makers
- Defined in:
- lib/makers.rb,
lib/makers/maker.rb,
lib/makers/proxy.rb,
lib/makers/traits.rb,
lib/makers/railtie.rb,
lib/makers/version.rb,
lib/makers/dsl/maker.rb,
lib/makers/dsl/trait.rb,
lib/makers/definitions.rb,
lib/makers/extensions/active_support/test_case.rb,
lib/generators/makers/install/install_generator.rb
Defined Under Namespace
Modules: Dsl, Extensions, Generators
Classes: Definitions, Maker, Proxy, Railtie, Traits
Constant Summary
collapse
- VERSION =
'5.1.0'
Class Method Summary
collapse
Class Method Details
.define(&block) ⇒ Object
30
31
32
|
# File 'lib/makers.rb', line 30
def define(&block)
Proxy.new &block
end
|
.definitions ⇒ Object
14
15
16
|
# File 'lib/makers.rb', line 14
def definitions
@definitions ||= Definitions.new
end
|
.directory ⇒ Object
22
23
24
25
26
27
28
|
# File 'lib/makers.rb', line 22
def directory
if Dir.exist?(Rails.root.join('spec'))
'spec'
else
'test'
end
end
|
.traits ⇒ Object
18
19
20
|
# File 'lib/makers.rb', line 18
def traits
@traits ||= Traits.new
end
|