Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/dependencyswapper/stringextractor.rb

Instance Method Summary collapse

Instance Method Details

#string_between_markers(marker1, marker2) ⇒ Object



2
3
4
# File 'lib/dependencyswapper/stringextractor.rb', line 2

def string_between_markers marker1, marker2
	self[/#{Regexp.escape(marker1)}(.*?)#{Regexp.escape(marker2)}/m, 1]
end