Internally, a method selfrefers to an instance, inside a class / module definition, but outside of any method, to the class / module itself.
class Thing
puts self.inspect
def foo
puts self.inspect
end
end
puts "==="
Thing.new.foo
, , , , : , puts. puts "===" "===". , , .