Sha256: d545a6e9d43fe762abd90147c9e512e936764384937ed9580aea0005bb2614ae
Contents?: true
Size: 306 Bytes
Versions: 3
Compression:
Stored size: 306 Bytes
Contents
#encoding: utf-8 # Support class module 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.15 | lib/wmid.rb |
webmoney-0.0.15.pre | lib/wmid.rb |
webmoney-0.0.14 | lib/wmid.rb |