Class: Prop::Key
- Inherits:
-
Object
- Object
- Prop::Key
- Defined in:
- lib/prop/key.rb
Class Method Summary collapse
-
.normalize(key) ⇒ Object
Simple key expansion only supports arrays and primitives.
Class Method Details
.normalize(key) ⇒ Object
Simple key expansion only supports arrays and primitives
8 9 10 11 12 13 14 |
# File 'lib/prop/key.rb', line 8 def self.normalize(key) if key.is_a?(Array) key.flatten.join("/") else key.to_s end end |