Skip to content

Commit

Permalink
Recommended usage in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpclark committed Mar 14, 2018
1 parent 57aa996 commit 2a59ddb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/faster_path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
require 'fiddle/import'

# FasterPath module behaves as a singleton object with the alternative method
# implementations for Pathname, and some for File, available directly on it.
# implementations for `Pathname`, and some for `File`, available directly on it.
#
# New projects are recommend to reference methods defined directly on `FasterPath`.
# Existing websites may use the `FasterPath.sledgehammer_everything!` method to
# directly injet the more performant implementations of path handling in to their
# existing code ecosystem. To do so you will need to
# `require 'faster_path/optional/monkeypatches'` beforehand.
module FasterPath
FFI_LIBRARY = begin
toplevel_dir = File.dirname(__dir__)
Expand Down

0 comments on commit 2a59ddb

Please sign in to comment.