Class: Cucumber::RbSupport::Snippet::Regexp

Inherits:
BaseSnippet show all
Defined in:
lib/cucumber/rb_support/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::RbSupport::Snippet::BaseSnippet

Class Method Details

.descriptionObject



81
82
83
# File 'lib/cucumber/rb_support/snippet.rb', line 81

def self.description
  "Snippets with parentheses"
end

Instance Method Details

#typed_patternObject



77
78
79
# File 'lib/cucumber/rb_support/snippet.rb', line 77

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