Class: String

Inherits:
Object
  • Object
show all
Includes:
ToFooFromStory
Defined in:
lib/branston/vendor/plugins/calendar_date_select-1.15/spec/spec_helper.rb,
lib/branston/vendor/plugins/restful_authentication/generators/authenticated/templates/features/step_definitions/rest_auth_features_helper.rb

Instance Method Summary collapse

Methods included from ToFooFromStory

fix_key, fix_value, #to_array_from_story, #to_hash_from_story

Instance Method Details

#to_regexpObject



23
24
25
# File 'lib/branston/vendor/plugins/calendar_date_select-1.15/spec/spec_helper.rb', line 23

def to_regexp
  is_a?(Regexp) ? self : Regexp.new(Regexp.escape(self.to_s))
end