Sha256: 477ee246108ebd135e2d41b7fb5bb66044b2815d01f5c9b5fa37d9fbeb9a5011

Contents?: true

Size: 466 Bytes

Versions: 4

Compression:

Stored size: 466 Bytes

Contents

# encoding: utf-8
require 'generators/generators'

module Dslable::Generators::RSpec
  # Dslable::Generators::RSpec RSpec Template Generator(only execute 'rspec --init')
  class SpecTemplate
    attr_accessor :dsl

    # == initialize generate rspec template
    # === Params
    #- _dsl: input from dsl
    def initialize(_dsl)
      @dsl = _dsl
    end

    # == generate rspec template
    def generate
      `rspec --init`
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dslable-0.0.6 lib/generators/rspec/spec_template.rb
dslable-0.0.5 lib/generators/rspec/spec_template.rb
dslable-0.0.4 lib/generators/rspec/spec_template.rb
dslable-0.0.3 lib/generators/rspec/spec_template.rb