Method: HtmlTemplate#ident_to_loop_it

Defined in:
lib/html/template.rb

#ident_to_loop_it(ident) ⇒ Object

make loop iterator (e.g. Channels => channel and so on)


265
266
267
268
269
270
271
# File 'lib/html/template.rb', line 265

def ident_to_loop_it( ident )  # make loop iterator (e.g. Channels => channel and so on)
   ## assume plural ident e.g. channels
   ##  cut-off last char, that is,
   ##   the plural s channels => channel
   ##  note:  ALWAYS downcase (auto-generated) loop iterator/pass name
   ident[0..-2].downcase
end