Method: PageMagic.mapping

Defined in:
lib/page_magic.rb

.mapping(path = nil, parameters: nil, fragment: nil) ⇒ Object

Create a more complex mapping to identify when a page should be loaded

Examples:

PageMagic.mapping '/', parameters: {project: 'page_magic'}, fragment: 'display'

See Also:

  • Matchers#initialize


44
45
46
# File 'lib/page_magic.rb', line 44

def mapping(path = nil, parameters: nil, fragment: nil)
  Mapping.new(path, parameters: parameters, fragment: fragment)
end