class Racket::Utils::ToolBelt
Collects functionality from all utility modules into a handy class.
Public Class Methods
new(root_dir)
click to toggle source
# File lib/racket/utils.rb, line 45 def initialize(root_dir) @root_dir = Pathname.new(root_dir).cleanpath.expand_path end
service(options = {})
click to toggle source
Returns a service proc that can be used by the registry.
@param [Hash] options @return [Proc]
# File lib/racket/utils.rb, line 41 def self.service(options = {}) -> { new(options[:root_dir]) } end