Class: Lab42::Function::Placeholder

Inherits:
Object
  • Object
show all
Defined in:
lib/lab42/function/placeholder.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#arg_numberObject (readonly)

Returns the value of attribute arg_number.



25
26
27
# File 'lib/lab42/function/placeholder.rb', line 25

def arg_number
  @arg_number
end

Class Method Details

.make(n) ⇒ Object



6
7
8
# File 'lib/lab42/function/placeholder.rb', line 6

def make n
  return cache.fetch(n){ cache[n] = new(n) }
end