Module: Consult::Utilities
- Included in:
- Template
- Defined in:
- lib/consult/utilities.rb
Instance Method Summary collapse
Instance Method Details
#resolve(path) ⇒ Object
5 6 7 8 9 |
# File 'lib/consult/utilities.rb', line 5 def resolve(path) return unless path pathname = Pathname.new(path) pathname.relative? ? Consult.root.join(pathname) : pathname end |