Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/miwifi/extensions.rb

Overview

frozen_string_literal: true

Instance Method Summary collapse

Instance Method Details

#between(start, finish) ⇒ Object



10
11
12
# File 'lib/miwifi/extensions.rb', line 10

def between(start, finish)
  self[/#{Regexp.escape(start)}(.*?)#{Regexp.escape(finish)}/m, 1]
end