memo

Markdownでシンタックスハイライト

#!C:/ruby/bin/ruby class HelloWorld def initialize(myname = "Ruby") @name = myname end def hello puts "Hello, world. I am #{@name}." end end bob = HelloWorld.new("Bob") alice = HelloWorld.new("Alice") ruby = HelloWorld.new bob.hello alice.…