-
-
Save cagmz/faa1e48d585c4ac7f39f2cc8bc5f5718 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Caller | |
class << self | |
def call(id:) | |
puts id | |
end | |
end | |
end | |
###### | |
class Caller | |
def self.call(id:) | |
new(id: id).call | |
end | |
def initialize(id:) | |
@id = id | |
end | |
def call | |
puts id | |
end | |
attr_reader :id | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment