Skip to content

Instantly share code, notes, and snippets.

@cagmz cagmz/call.rb Secret
Last active Sep 7, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.