Parent

Cucumber::FeatureGenerator

Attributes

named_args[R]

Public Class Methods

gem_root() click to toggle source
# File lib/generators/cucumber/feature/feature_generator.rb, line 28
def self.gem_root
  File.expand_path("../../../../../", __FILE__)
end
source_root() click to toggle source
# File lib/generators/cucumber/feature/feature_generator.rb, line 32
def self.source_root
  File.join(gem_root, 'templates', 'feature')
end

Public Instance Methods

generate() click to toggle source
# File lib/generators/cucumber/feature/feature_generator.rb, line 17
def generate
  create_directory
  create_feature_file
  create_steps_file
  create_support_file
end
parse_fields() click to toggle source
# File lib/generators/cucumber/feature/feature_generator.rb, line 13
def parse_fields
  @named_args = @fields.nil? ? [] : @fields.map { |arg| NamedArg.new(arg) }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.