class A @var = ‘hello' def self.var 'bye' end end A.instance_eval { var }
Standard input is empty
Standard output is empty
prog.rb:4: syntax error, unexpected tIDENTIFIER, expecting keyword_end 'bye' ^ prog.rb:4: unterminated string meets end of file prog.rb:4: syntax error, unexpected end-of-input, expecting keyword_end A.instance_eval { var } ^