Method: Decimal#showRE

Defined in:
lib/m500.rb

#showRE(a, re) ⇒ Object



1900
1901
1902
1903
1904
1905
1906
# File 'lib/m500.rb', line 1900

def showRE(a,re)  
  if a =~ re  
    "#{$`}<<#{$&}>>#{$'}"  
  else  
    "no match"  
  end  
end