Sha256: 7ba7b9de3227123f4bbd6e1b0ead5efd154896d292ad88c9c6db400f72f3104c
Contents?: true
Size: 883 Bytes
Versions: 8
Compression:
Stored size: 883 Bytes
Contents
# -*- encoding : utf-8 -*- module ScopeHelpers def scope_of section case section when /main card content/ "#main > .card-slot > .d0-card-frame > .d0-card-content" when /pointer card content/ "#main > .card-slot > .d0-card-frame > .d0-card-content > .pointer-list" when /main card header/ "#main > .card-slot > .d0-card-frame > .d0-card-header" when /main card menu/ "#main > .card-slot > .menu-slot > .card-menu" when /main card toolbar/ "#main > .card-slot > .d0-card-frame > nav.toolbar" when /main card frame/ "#main > .card-slot > .d0-card-frame" when /main card body/ "#main > .card-slot > .d0-card-frame > .d0-card-body" else raise "Can't find mapping from \"#{section}\" to a scope.\n" \ "Now, go and add a mapping in #{__FILE__}" end end end World(ScopeHelpers)
Version data entries
8 entries across 8 versions & 1 rubygems