Class: Patm::Pattern::ArrRest

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?

Instance Method Details

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



309
310
311
312
313
314
315
# File 'lib/patm.rb', line 309

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

#execute(mmatch, obj) ⇒ Object



302
303
304
# File 'lib/patm.rb', line 302

def execute(mmatch, obj)
  true
end

#inspectObject



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

def inspect; "..."; end

#rest?Boolean

Returns:

  • (Boolean)


305
306
307
# File 'lib/patm.rb', line 305

def rest?
  true
end