Class: WebApplication
Instance Attribute Summary collapse
-
#bookmarkable_pages ⇒ Object
readonly
Returns the value of attribute bookmarkable_pages.
-
#homepage ⇒ Object
Returns the value of attribute homepage.
Instance Method Summary collapse
-
#initialize ⇒ WebApplication
constructor
A new instance of WebApplication.
- #mount_bookmarkable_page(path, page) ⇒ Object
Constructor Details
#initialize ⇒ WebApplication
Returns a new instance of WebApplication.
5 6 7 |
# File 'lib/lapillus/web_application.rb', line 5 def initialize() @bookmarkable_pages = Hash.new end |
Instance Attribute Details
#bookmarkable_pages ⇒ Object (readonly)
Returns the value of attribute bookmarkable_pages.
3 4 5 |
# File 'lib/lapillus/web_application.rb', line 3 def bookmarkable_pages @bookmarkable_pages end |
#homepage ⇒ Object
Returns the value of attribute homepage.
2 3 4 |
# File 'lib/lapillus/web_application.rb', line 2 def homepage @homepage end |
Instance Method Details
#mount_bookmarkable_page(path, page) ⇒ Object
9 10 11 |
# File 'lib/lapillus/web_application.rb', line 9 def mount_bookmarkable_page(path,page) @bookmarkable_pages[path]=page end |