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

Instance Method Details

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



282
283
284
285
286
287
288
# File 'lib/patm.rb', line 282

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

#execute(mmatch, obj) ⇒ Object



275
276
277
# File 'lib/patm.rb', line 275

def execute(mmatch, obj)
  true
end

#inspectObject



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

def inspect; "..."; end

#rest?Boolean

Returns:

  • (Boolean)


278
279
280
# File 'lib/patm.rb', line 278

def rest?
  true
end