lib/wmid.rb in webmoney-0.0.4.3 vs lib/wmid.rb in webmoney-0.0.4.4

- old
+ new

@@ -4,10 +4,10 @@ # Parameter: wmid - String or Wmid def initialize(str) str = str.to_s unless str.kind_of?(String) - raise IncorrectWmidError, ': ' + str.to_s unless str =~ /^\d{12}$/ + raise IncorrectWmidError, str unless str =~ /^\d{12}$/ super(str) end def wmid; self end