Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/jekyll/multiple/languages/plugin.rb
Instance Method Summary collapse
Instance Method Details
#access(path) ⇒ Object
188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/jekyll/multiple/languages/plugin.rb', line 188 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 |