Class: ConstStricter::ConstMap
- Inherits:
-
Hash
- Object
- Hash
- ConstStricter::ConstMap
- Defined in:
- lib/const_stricter/const_map.rb
Instance Method Summary collapse
Instance Method Details
#push(const_name:, const_path: []) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/const_stricter/const_map.rb', line 3 def push(const_name:, const_path: []) if const_path.empty? self[const_name] = ConstMap.new else dig(*const_path)[const_name] = ConstMap.new end end |