class Hoge attr_reader :msg def initialize(msg) @msg = msg end def hello puts "Hello, #{msg}" end end
def hello puts 'Hello' end