Class: Algebrick::Matchers::Atom
- Defined in:
- lib/algebrick/matchers/atom.rb
Instance Attribute Summary
Attributes inherited from Wrapper
Attributes inherited from Abstract
Instance Method Summary collapse
-
#initialize(something) ⇒ Atom
constructor
A new instance of Atom.
- #to_s ⇒ Object
Methods inherited from Wrapper
Methods inherited from Abstract
#!, #&, #==, #===, #>, #assign!, #assign?, #assign_to_s, #assigned?, #assigns, #case, #children, #children_including_self, #inspect, #matched?, #to_a, #|
Methods included from TypeCheck
#Child!, #Child?, #Match!, #Match?, #Type!, #Type?
Constructor Details
Instance Method Details
#to_s ⇒ Object
23 24 25 |
# File 'lib/algebrick/matchers/atom.rb', line 23 def to_s assign_to_s + "#{@something.name}.to_m" end |