Sha256: a051ae3e8d12807671ba6776193e90761bdd501048567920944433d9a9bde670
Contents?: true
Size: 247 Bytes
Versions: 2
Compression:
Stored size: 247 Bytes
Contents
class Hash def to_yinx raw = Yinx::NoteMeta.raw raise TypeError, "can not convert #{self} to Yinx::NoteMeta" unless raw.send(:attr_methods).all?{|m| self.has_key?(m) or self.has_key?(m.to_s)} raw.marshal_load self raw end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yinx-0.1.5 | lib/yinx/hash.rb |
yinx-0.1.4 | lib/yinx/hash.rb |