Method: Bcome::RenderIrb#construct_menu_item_string
- Defined in:
- lib/render_irb.rb
#construct_menu_item_string(item, index, colour) ⇒ Object
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/render_irb.rb', line 38 def (item, index, colour) command = item[:command] description = item[:description] usage = item[:usage] = "#{tab}#{index+1}. #{description}".send(colour) + "\n" += "#{tab}" + "Command: ". + "#{command}\n". += "#{tab}" + "Usage: ". + "#{usage}\n". if usage += "\n" return end |