Class: AePageObjects::RakeRouter::Route
- Inherits:
-
Object
- Object
- AePageObjects::RakeRouter::Route
- Defined in:
- lib/ae_page_objects/core/rake_router.rb
Instance Method Summary collapse
- #generate_path(options) ⇒ Object
-
#initialize(spec, mounted_prefix) ⇒ Route
constructor
A new instance of Route.
- #matches?(url) ⇒ Boolean
Constructor Details
Instance Method Details
#generate_path(options) ⇒ Object
144 145 146 147 |
# File 'lib/ae_page_objects/core/rake_router.rb', line 144 def generate_path() = HashSymbolizer.new().symbolize_keys @path.generate() end |
#matches?(url) ⇒ Boolean
140 141 142 |
# File 'lib/ae_page_objects/core/rake_router.rb', line 140 def matches?(url) url =~ @path.regex end |