Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Uematsu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class Hoge
attr_reader :message
def initialize
@message = "Hello"
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本だとどうなってるか覚えてないけど、業務で書くrubyのコードは、インデントが半角スペース2個なのが標準

end

class Piyo < Hoge
def initialize
@message = "Hi"
super
end
end

puts Piyo.new.message