J
Jim
i am writing plugins for sketchup and use a module to encapsulate and
protect my variable and methods from name clashes.
Is there any difference between the following?
module A
def A.say_hi # or self.say
puts "hi"
end
end
module B; end
def B.say_hi
puts "hi"
end
thanks.
protect my variable and methods from name clashes.
Is there any difference between the following?
module A
def A.say_hi # or self.say
puts "hi"
end
end
module B; end
def B.say_hi
puts "hi"
end
thanks.