Class: Prismatic::Page
- Inherits:
-
SitePrism::Page
- Object
- SitePrism::Page
- Prismatic::Page
show all
- Includes:
- ElementContainer
- Defined in:
- lib/prismatic/page.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_id, *args) ⇒ Object
14
15
16
17
18
|
# File 'lib/prismatic/page.rb', line 14
def method_missing(method_id, *args)
optionally_update_elements
return super unless methods.include?(method_id)
send(method_id, *args)
end
|
Instance Method Details
#load(*args) ⇒ Object
4
5
6
7
|
# File 'lib/prismatic/page.rb', line 4
def load(*args)
super(*args)
optionally_update_elements
end
|
#respond_to?(method_id, include_all = false) ⇒ Boolean
9
10
11
12
|
# File 'lib/prismatic/page.rb', line 9
def respond_to?(method_id, include_all = false)
optionally_update_elements
methods.include?(method_id)
end
|