Sha256: 82f99799ab7dd3bcde8e8b25f9d7bb68f6f8cc34a63969b4457f73ef6c632c90
Contents?: true
Size: 296 Bytes
Versions: 3
Compression:
Stored size: 296 Bytes
Contents
# 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 unless str =~ /^\d{12}$/ super(str) end def wmid; self end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webmoney-0.0.4.5 | lib/wmid.rb |
webmoney-0.0.4.6 | lib/wmid.rb |
webmoney-0.0.4.4 | lib/wmid.rb |