Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/jekyll/multiple/languages/plugin.rb
Instance Method Summary collapse
Instance Method Details
#access(path) ⇒ Object
134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/jekyll/multiple/languages/plugin.rb', line 134 def access(path) ret = self path.split('.').each do |p| if p.to_i.to_s == p ret = ret[p.to_i] else ret = ret[p.to_s] || ret[p.to_sym] end break unless ret end ret end |