Class: String

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

Instance Method Summary collapse

Instance Method Details

#full_match(re) ⇒ Object



25
26
27
28
# File 'lib/util.rb', line 25

def full_match(re)
  m = re.match(self)
  m && (m.begin(0) == 0) && (m.end(0) == self.length)
end