Module: OpenBEL::Util
- Defined in:
- app/openbel/api/util.rb
Class Method Summary collapse
Class Method Details
.path(*args) ⇒ Object
5 6 7 8 9 |
# File 'app/openbel/api/util.rb', line 5 def self.path(*args) return nil if args.empty? tokens = args.flatten tokens.reduce(Pathname(tokens.shift)) { |path, t| path += t } end |