Class: Kiosk::Claim::PathClaim
- Defined in:
- lib/kiosk/claim/path_claim.rb
Instance Attribute Summary
Attributes inherited from NodeClaim
Instance Method Summary collapse
-
#initialize(type, options = {}, &parser) ⇒ PathClaim
constructor
A new instance of PathClaim.
Methods inherited from NodeClaim
Constructor Details
#initialize(type, options = {}, &parser) ⇒ PathClaim
Returns a new instance of PathClaim.
4 5 6 7 8 |
# File 'lib/kiosk/claim/path_claim.rb', line 4 def initialize(type, = {}, &parser) raise ArgumentError.new('no path pattern given') unless [:pattern] super(type, ) { |node| node.match_uri([:pattern], [:shims]) } end |