Created
December 31, 2020 15:59
-
-
Save kuredev/034ed7aade30e0fd86207c2f5419debb to your computer and use it in GitHub Desktop.
Ruby 3.0 の静的解析テスト用クラス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Kure1 | |
def self.run | |
"kure" | |
end | |
end | |
# puts Kure1.run | |
class Kure2 | |
def initialize(param) | |
@kure = param | |
end | |
def run1 | |
@kure | |
end | |
def run2 | |
@kure == 0 ? 1 : "string" | |
end | |
end |
Author
kuredev
commented
Dec 31, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment