module Encruby
Constants
- VERSION
Public Class Methods
bin_path()
click to toggle source
# File lib/encruby.rb, line 17 def self.bin_path exes = ENV['PATH'].split(":").map do |p| path = Pathname.new(p).join(self.class.name.downcase) path if path.executable? end.compact exes.any? ? exes.min : Encruby.root.join("exe", "encruby") end
root()
click to toggle source
# File lib/encruby.rb, line 13 def self.root Pathname.new(__FILE__).dirname.dirname end
shebang()
click to toggle source
# File lib/encruby.rb, line 25 def self.shebang "#!#{bin_path} exec --verify" end