Class: GemGenerator
- Inherits:
-
Genosaurus
- Object
- Genosaurus
- GemGenerator
- Defined in:
- lib/gemstub/gem_generator/gem_generator.rb
Instance Method Summary collapse
Instance Method Details
#app ⇒ Object
5 6 7 |
# File 'lib/gemstub/gem_generator/gem_generator.rb', line 5 def app param(:app) end |
#author ⇒ Object
13 14 15 |
# File 'lib/gemstub/gem_generator/gem_generator.rb', line 13 def param(:author) || (ENV["USERNAME"] || ENV["USER"]) end |
#rspec? ⇒ Boolean
21 22 23 |
# File 'lib/gemstub/gem_generator/gem_generator.rb', line 21 def rspec? test == 'rspec' end |
#test ⇒ Object
17 18 19 |
# File 'lib/gemstub/gem_generator/gem_generator.rb', line 17 def test param(:test) || 'rspec' end |
#unit? ⇒ Boolean
25 26 27 |
# File 'lib/gemstub/gem_generator/gem_generator.rb', line 25 def unit? test == 'unit' end |
#version ⇒ Object
9 10 11 |
# File 'lib/gemstub/gem_generator/gem_generator.rb', line 9 def version param(:version) || '0.0.1' end |