Skip to content

Commit

Permalink
Implement application configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
apexatoll committed Sep 28, 2023
1 parent 6f24567 commit 9525978
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/kangaru/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ def config
@config ||= Config.new
end

def configure(&block)
block.call(config)
end

def setup
autoloader.setup
end
Expand Down
2 changes: 2 additions & 0 deletions sig/kangaru/application.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module Kangaru

def config: -> Config

def configure: { (Config) -> void } -> void

def setup: -> void

def run!: (Array[String]) -> void
Expand Down

0 comments on commit 9525978

Please sign in to comment.