Class: Atomy::Pattern::Wildcard

Inherits:
Atomy::Pattern show all
Defined in:
lib/atomy/pattern/wildcard.rb

Instance Attribute Summary

Attributes inherited from Atomy::Pattern

#from_node

Instance Method Summary collapse

Methods inherited from Atomy::Pattern

#===

Instance Method Details

#inline_matches?(gen) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
12
# File 'lib/atomy/pattern/wildcard.rb', line 9

def inline_matches?(gen)
  gen.pop
  gen.push_true
end

#matches?(_) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/atomy/pattern/wildcard.rb', line 5

def matches?(_)
  true
end

#targetObject



14
15
16
# File 'lib/atomy/pattern/wildcard.rb', line 14

def target
  Object
end