Module: Macro::Names

Defined in:
lib/macro/form.rb

Constant Summary collapse

COUNT =
[0]

Class Method Summary collapse

Class Method Details

.request(form) ⇒ Object

Sets up the mapping from a form name to a form literal

form

the name of the form



234
235
236
237
238
# File 'lib/macro/form.rb', line 234

def self.request form 
  result="Number_#{COUNT[0]+=1}"
  const_set result, form
  return result
end