Class: Patm::Pattern::Any

Inherits:
Patm::Pattern show all
Defined in:
lib/patm.rb

Instance Method Summary collapse

Methods inherited from Patm::Pattern

#&, #[], build_from, #compile, #opt, #opt?, #rest?

Instance Method Details

#compile_internal(free_index, target_name = "_obj") ⇒ Object



302
303
304
305
306
307
308
# File 'lib/patm.rb', line 302

def compile_internal(free_index, target_name = "_obj")
  [
    nil,
    [],
    free_index
  ]
end

#execute(match, obj) ⇒ Object



300
# File 'lib/patm.rb', line 300

def execute(match, obj); true; end

#inspectObject



301
# File 'lib/patm.rb', line 301

def inspect; 'ANY'; end