Sha256: cd6233e8b42742ad9b42ec008b93c83b84df75f4d5cb9e9a6cf03a35da3b043c
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
module Qrb module DataType def dress(value, handler = DressHelper.new) ad_type.dress(value, handler) end def contract(name, infotype) ad_contracts[name] = [ Qrb.type(infotype) , method(name) ] end private def ad_type @ad_type ||= Qrb.adt(self, ad_contracts) end def ad_contracts @ad_contracts ||= {} end end # module DataType end # module Qrb
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.2.0 | lib/qrb/data_type.rb |
qrb-0.1.0 | lib/qrb/data_type.rb |