Representation of Atomic types
# File lib/algebrick/atom.rb, line 20 def initialize(name, &block) super name, &block extend self end
# File lib/algebrick/atom.rb, line 33 def ==(other) self.equal? other end
# File lib/algebrick/atom.rb, line 29 def be_kind_of(type) extend type end
# File lib/algebrick/atom.rb, line 45 def pretty_print(q) q.text to_s end
# File lib/algebrick/atom.rb, line 25 def to_m Matchers::Atom.new self end
# File lib/algebrick/atom.rb, line 41 def to_s name || 'nameless-atom' end
# File lib/algebrick/atom.rb, line 37 def type self end