Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/util.rb
Instance Method Summary collapse
Instance Method Details
#full_match(re) ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'lib/util.rb', line 53 def full_match(re) m = re.match(self) if m && (m.begin(0) == 0) && (m.end(0) == self.length) m else nil end end |