Module: FasterPath
- Defined in:
- lib/faster_path.rb,
lib/faster_path/version.rb,
lib/faster_path/optional/refinements.rb,
lib/faster_path/optional/monkeypatches.rb
Defined Under Namespace
Modules: RefineFile, RefinePathname
Constant Summary
collapse
- FFI_LIBRARY =
begin
toplevel_dir = File.dirname(__dir__)
config = Thermite::Config.new(cargo_project_path: toplevel_dir,
ruby_project_path: toplevel_dir)
config.ruby_extension_path
end
- VERSION =
"0.3.8"
Class Method Summary
collapse
Class Method Details
.basename(pth, ext = "") ⇒ Object
38
39
40
|
# File 'lib/faster_path.rb', line 38
def self.basename(pth, ext="")
Public.send(:basename, pth, ext)
end
|
.blank?(str) ⇒ Boolean
34
35
36
|
# File 'lib/faster_path.rb', line 34
def self.blank?(str)
"#{str}".strip.empty?
end
|
.children(pth, with_directory = true) ⇒ Object
42
43
44
|
# File 'lib/faster_path.rb', line 42
def self.children(pth, with_directory=true)
Public.send(:children, pth, with_directory)
end
|
.children_compat(pth, with_directory = true) ⇒ Object
46
47
48
|
# File 'lib/faster_path.rb', line 46
def self.children_compat(pth, with_directory=true)
Public.send(:children_compat, pth, with_directory)
end
|
.ruby_arch_bits ⇒ Object
30
31
32
|
# File 'lib/faster_path.rb', line 30
def self.ruby_arch_bits
1.size * 8
end
|
.rust_arch_bits ⇒ Object
26
27
28
|
# File 'lib/faster_path.rb', line 26
def self.rust_arch_bits
Rust.rust_arch_bits
end
|
.sledgehammer_everything! ⇒ Object
99
100
101
102
103
|
# File 'lib/faster_path/optional/monkeypatches.rb', line 99
def self.sledgehammer_everything!()
MonkeyPatches._ruby_core_file!
MonkeyPatches._ruby_library_pathname!
"CAUTION: Monkey patching effects everything! Be very sure you want this!"
end
|