Method: PostRunner::NavButtonRow#addButton

Defined in:
lib/postrunner/NavButtonRow.rb

#addButton(icon, url = nil) ⇒ Object

Add a new button to the NavButtonRow object.

Parameters:

  • icon (String)

    File name of the icon file

  • url (String) (defaults to: nil)

    URL of the page to change to



66
67
68
# File 'lib/postrunner/NavButtonRow.rb', line 66

def addButton(icon, url = nil)
  @buttons << Button.new(icon, url)
end