Module: Cinnabar
- Defined in:
- lib/cinnabar/00_pre.rb,
lib/cinnabar/path.rb,
lib/cinnabar/path.rb,
lib/cinnabar/utils.rb,
lib/cinnabar/version.rb,
lib/cinnabar/gem_path.rb
Overview
Defined Under Namespace
Modules: Command, Downloader, FnPipe, GemPathCore, StrToPath, Utils Classes: GemPath
Constant Summary collapse
- VERSION =
'0.0.8'
Class Method Summary collapse
- .firb_installation_script_path ⇒ Object
- .firb_path ⇒ Object
-
.new_gem_path_proc ⇒ Proc
Returns a factory
Procthat builds a GemPath instance. -
.to_path_proc ⇒ Proc
Build a Proc that converts a string value into a Kernel.Pathname.
Class Method Details
.firb_installation_script_path ⇒ Object
29 30 31 |
# File 'lib/cinnabar/path.rb', line 29 def firb_installation_script_path File.('../../misc/firb/install.ps1', Kernel.__dir__) end |
.firb_path ⇒ Object
25 26 27 |
# File 'lib/cinnabar/path.rb', line 25 def firb_path File.('../../misc/firb/bin/', Kernel.__dir__) end |
.new_gem_path_proc ⇒ Proc
32 |
# File 'lib/cinnabar/gem_path.rb', line 32 def self.new_gem_path_proc = ->(opts) { Cinnabar::GemPath.new(opts) } |
.to_path_proc ⇒ Proc
Build a Proc that converts a string value into a Kernel.Pathname.
This is handy when you want to pass a converter into higher-order APIs (e.g., map/filter pipelines).
19 |
# File 'lib/cinnabar/path.rb', line 19 def self.to_path_proc = ->(s) { Pathname(s) } |