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, #rest?

Instance Method Details

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



185
186
187
188
189
190
191
# File 'lib/patm.rb', line 185

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

#execute(match, obj) ⇒ Object



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

def execute(match, obj); true; end

#inspectObject



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

def inspect; 'ANY'; end