Skip to content

Commit

Permalink
Refactor Inboxable module configuration method
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadnawzad committed Jan 22, 2024
1 parent eb23b00 commit 2b5bb42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/inboxable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ class Error < StandardError; end

class << self
attr_accessor :configuration
end

def self.configure
@configuration ||= Configuration.new
yield(@configuration) if block_given?
def configure
@configuration ||= Configuration.new
yield(@configuration) if block_given?
end
end
end
2 changes: 1 addition & 1 deletion sig/inboxable.rbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Inboxable
VERSION: String
attr_accessor configuration: Configuration
def configure: () { (Configuration) -> Configuration } -> Configuration
def self.configure: () { (Configuration) -> Configuration } -> Configuration
end

0 comments on commit 2b5bb42

Please sign in to comment.