Module: RubyLens::Paths
- Defined in:
- lib/rubylens/paths.rb
Class Method Summary collapse
Class Method Details
.inside?(path, directory) ⇒ Boolean
7 8 9 10 11 |
# File 'lib/rubylens/paths.rb', line 7 def inside?(path, directory) path = File.(path) directory = File.(directory) path == directory || path.start_with?("#{directory}#{File::SEPARATOR}") end |