Module: Rudash::PathResolver
- Defined in:
- lib/utils/path_resolver.rb
Class Method Summary collapse
Class Method Details
.resolve(path) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/utils/path_resolver.rb', line 11 def self.resolve(path) normalized_path = path normalized_path = normalized_path.join('.') if normalized_path.is_a?(Array) filter_not_empty = ->(value) { value != '' } R_.filter( normalized_path.split(/[.\[\]]/), filter_not_empty ) end |