Class: TrueClass

Inherits:
Object show all
Includes:
NOMS::BashOn
Defined in:
lib/noms/bashon.rb

Instance Method Summary collapse

Methods included from NOMS::BashOn

#name_key

Instance Method Details

#to_bashon(*name) ⇒ Object



281
282
283
284
285
286
287
# File 'lib/noms/bashon.rb', line 281

def to_bashon(*name)
   if name.empty?
      "true"
   else
      "function #{name_key(name)} { return 0; }"
   end
end