Class: Cucumber::Glue::Snippet::Classic

Inherits:
BaseSnippet show all
Defined in:
lib/cucumber/glue/snippet.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseSnippet

cli_option_string, #initialize, #step, #to_s

Constructor Details

This class inherits a constructor from Cucumber::Glue::Snippet::BaseSnippet

Class Method Details

.descriptionObject



134
135
136
# File 'lib/cucumber/glue/snippet.rb', line 134

def self.description
  'Snippets without parentheses. Note that these cause a warning from modern versions of Ruby.'
end

Instance Method Details

#typed_patternObject



130
131
132
# File 'lib/cucumber/glue/snippet.rb', line 130

def typed_pattern
  " /^#{pattern}$/"
end