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
Slide 4
Slide 4 text
“a set of vertices and edges”
Slide 5
Slide 5 text
class A
def self.x
B.new.y
end
end
class B
def y
1 + C.z do 1 end
end
end
class C
def self.z
yield
end
end
Slide 6
Slide 6 text
No content
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
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