class Broken
|
|
attr_accessor :x
|
|
|
|
def missing_end
|
|
if x > 0
|
|
puts "positive"
|
|
|
|
def wrong_syntax
|
|
x = 42
|
|
{x + 1
|
|
|
|
end
|
class Broken
|
|
attr_accessor :x
|
|
|
|
def missing_end
|
|
if x > 0
|
|
puts "positive"
|
|
|
|
def wrong_syntax
|
|
x = 42
|
|
{x + 1
|
|
|
|
end
|