Class: Dslable::Generators::RSpec::SpecTemplate
- Inherits:
-
Object
- Object
- Dslable::Generators::RSpec::SpecTemplate
- Defined in:
- lib/generators/rspec/spec_template.rb
Overview
Dslable::Generators::RSpec RSpec Template Generator(only execute ‘rspec –init’)
Instance Attribute Summary collapse
-
#dsl ⇒ Object
Returns the value of attribute dsl.
Instance Method Summary collapse
-
#generate ⇒ Object
generate rspec template.
-
#initialize(_dsl) ⇒ SpecTemplate
constructor
initialize generate rspec template === Params - _dsl: input from dsl.
Constructor Details
#initialize(_dsl) ⇒ SpecTemplate
initialize generate rspec template
Params
-
_dsl: input from dsl
12 13 14 |
# File 'lib/generators/rspec/spec_template.rb', line 12 def initialize(_dsl) @dsl = _dsl end |
Instance Attribute Details
#dsl ⇒ Object
Returns the value of attribute dsl.
7 8 9 |
# File 'lib/generators/rspec/spec_template.rb', line 7 def dsl @dsl end |
Instance Method Details
#generate ⇒ Object
generate rspec template
17 18 19 |
# File 'lib/generators/rspec/spec_template.rb', line 17 def generate `rspec --init` end |