O
Oliver Saunders
I understand the way these things are working but I don't really
understand what's going on and why.
module Foo
def bar
1
end
def Foo.zim
2
end
end
module SomeNamespace
require 'procedural_api'
end
SomeNamespace.function_from_procedural_api # this ain't gonna work!
SomeNamespace::function_from_procedural_api # nor is this
class SomeClass
include Foo
end
I'm very confused by all this. Please help unravel the mess in my brain.
understand what's going on and why.
module Foo
def bar
1
end
def Foo.zim
2
end
end
module SomeNamespace
require 'procedural_api'
end
SomeNamespace.function_from_procedural_api # this ain't gonna work!
SomeNamespace::function_from_procedural_api # nor is this
class SomeClass
include Foo
end
I'm very confused by all this. Please help unravel the mess in my brain.