Class: Vinyl::Rule::RegExpHash
- Inherits:
-
Hash
- Object
- Hash
- Vinyl::Rule::RegExpHash
- Defined in:
- lib/vinyl/rule.rb
Instance Method Summary collapse
Instance Method Details
#[](a) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/vinyl/rule.rb', line 14 def [](a) return super a if a.class == Regexp self.keys.each do |pattern| return super pattern if a.respond_to?(:match) && a.match(pattern) end return nil end |