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, build_from_array, build_from_hash, #compile, #opt, #opt?, #rest?

Instance Method Details

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



344
345
346
347
348
349
350
# File 'lib/patm.rb', line 344

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

#execute(match, obj) ⇒ Object



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

def execute(match, obj); true; end

#inspectObject



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

def inspect; 'ANY'; end