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
146 147 148 149 |
# File 'lib/ae_page_objects/core/rake_router.rb', line 146 def generate_path() = HashSymbolizer.new().symbolize_keys @path.generate() end |
#matches?(url) ⇒ Boolean
142 143 144 |
# File 'lib/ae_page_objects/core/rake_router.rb', line 142 def matches?(url) url =~ @path.regex end |