Class: Runicode

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

Constant Summary collapse

STRIP_EXPRESSION =
Regexp.new("(#{start_of_string})|(#{end_of_string})")

Class Method Summary collapse

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