Class: Regexp

Inherits:
Object show all
Defined in:
lib/gems/rspec-1.1.12/lib/spec/story/extensions/regexp.rb

Instance Method Summary collapse

Instance Method Details

#arg_regexpObject



6
7
8
# File 'lib/gems/rspec-1.1.12/lib/spec/story/extensions/regexp.rb', line 6

def arg_regexp
  ::Spec::Story::Step::PARAM_OR_GROUP_PATTERN
end

#step_nameObject



2
3
4
# File 'lib/gems/rspec-1.1.12/lib/spec/story/extensions/regexp.rb', line 2

def step_name
  self.source.gsub '\\$', '$$'
end