Method: PageMagic::ClassMethods#on_load
- Defined in:
- lib/page_magic/class_methods.rb
#on_load(&block) ⇒ Object
sets block to run when page has loaded if one has not been set on the page object class it will return a default block that does nothing
18 19 20 21 22 |
# File 'lib/page_magic/class_methods.rb', line 18 def on_load(&block) return @on_load || DEFAULT_ON_LOAD unless block @on_load = block end |