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

- old
+ new

@@ -1,8 +1,10 @@ # Support class class Webmoney class Wmid < String - + + # 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}$/ super(str) end