module Sinatra::DependencyInjection

Constants

VERSION

Public Class Methods

registered(base) click to toggle source
# File lib/sinatra/dependency_injection.rb, line 6
def self.registered(base)
  base.dependency_injection_path 'services.yml'
end

Public Instance Methods

dependency_injection_path(file_path=nil) click to toggle source
# File lib/sinatra/dependency_injection.rb, line 10
def dependency_injection_path(file_path=nil)
  @dependency_injection_path = file_path if file_path
  @dependency_injection_path
end