Sha256: 4da3d5d3ac16c1b1cae317db873ac5aab790c39dba3be81eaf5473678e0beb19
Contents?: true
Size: 742 Bytes
Versions: 6
Compression:
Stored size: 742 Bytes
Contents
module Checked class Clean module Base private # ============================= include ::Checked::DSL public # ============================== include ::Checked::Base def < meth, *args val = super named_demand!("Cleaned val", val, :not_nil!) self.target= super end def << *args args.flatten.each { |name| self.< name } end private # =========================================== def target= val named_demand! "Clean target", val, :not_nil! @target = val end end # === module Base include Base end # === class Clean end # === class Checked
Version data entries
6 entries across 6 versions & 1 rubygems