Class: Prismatic::Page

Inherits:
SitePrism::Page
  • Object
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

#loadObject



4
5
6
7
# File 'lib/prismatic/page.rb', line 4

def load
  super
  optionally_update_elements
end

#respond_to?(method_id, include_all = false) ⇒ Boolean

Returns:

  • (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