Class: Runicode
- Inherits:
-
Object
- Object
- Runicode
- Defined in:
- lib/runicode.rb
Constant Summary collapse
- STRIP_EXPRESSION =
Regexp.new("(#{start_of_string})|(#{end_of_string})")
Class Method Summary collapse
-
.strip(str) ⇒ Object
/(A)|([p{C}p{Z}p{Blank}]z)/.
Class Method Details
.strip(str) ⇒ Object
/(A)|([p{C}p{Z}p{Blank}]z)/
9 10 11 |
# File 'lib/runicode.rb', line 9 def self.strip(str) str.gsub STRIP_EXPRESSION, '' end |