Sha256: fb6a5f786918ca4ec954a6b372b5bf69892adbf9a26cbc352bdd56ce6ed0fa9f
Contents?: true
Size: 531 Bytes
Versions: 5
Compression:
Stored size: 531 Bytes
Contents
module Alf module Algebra class Autonum include Operator include NonRelational include Unary signature do |s| s.argument :as, AttrName, :autonum end def heading @heading ||= operand.heading + Heading[as => Integer] end def keys @keys ||= operand.keys + [ [ as ] ] end private def _type_check(options) no_name_clash!(operand.attr_list, AttrList[as]) end end # class Autonum end # module Algebra end # module Alf
Version data entries
5 entries across 5 versions & 1 rubygems