class A def self.z B.y end end class B def self.y puts "hello world" end end A.z # => "hello world" “message passing is a technique for invoking behavior” A -- y -> B ● A is the sender ● B is the receiver ● y is the message
module Poto module FileRepository module AWS class S3 def all(prefix:, page:, per_page:) objects = client.objects( page: page, per_page: per_page, prefix: prefix ) FileCollectionMapper.new(objects).call end end end end end