class Atomy::Pattern

Attributes

from_node[RW]

Public Instance Methods

===(v) click to toggle source
# File lib/atomy/pattern.rb, line 8
def ===(v)
  matches?(v)
end
inline_matches?(gen) click to toggle source
# File lib/atomy/pattern.rb, line 20
def inline_matches?(gen)
  gen.push_literal(self)
  gen.swap
  gen.send(:matches?, 1)
end
matches?(gen) click to toggle source
# File lib/atomy/pattern.rb, line 12
def matches?(gen)
  raise NotImplementedError
end
target() click to toggle source
# File lib/atomy/pattern.rb, line 16
def target
  raise NotImplementedError
end