Method: Howitzer::Web::PageDsl::ClassMethods#on
- Defined in:
- lib/howitzer/web/page_dsl.rb
#on(&block) ⇒ Object
Note:
It additionally checks the page is really displayed on each method call, otherwise it raises error
Allows to execute page methods in context of the page.
86 87 88 89 |
# File 'lib/howitzer/web/page_dsl.rb', line 86 def on(&block) PageScope.new(self, &block) nil end |