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



317
318
319
320
321
322
323
# File 'lib/patm.rb', line 317

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

#execute(match, obj) ⇒ Object



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

def execute(match, obj); true; end

#inspectObject



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

def inspect; 'ANY'; end