module Caracal
Convenience method for finding root directory.
We're using this strategy borrowed from ActiveSupport to make command syntax a little more flexible. In a perfect world we'd just use the double splat feature of Ruby, but support for that is pretty limited at this point, so we're going the extra mile to be cool.
Constants
- VERSION
Public Class Methods
root()
click to toggle source
# File lib/caracal.rb, line 27 def self.root File.dirname __dir__ end