diff options
Diffstat (limited to 'test/prism/fixtures/whitequark/endless_method_command_syntax.txt')
-rw-r--r-- | test/prism/fixtures/whitequark/endless_method_command_syntax.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/prism/fixtures/whitequark/endless_method_command_syntax.txt b/test/prism/fixtures/whitequark/endless_method_command_syntax.txt new file mode 100644 index 0000000000..d9dad2d747 --- /dev/null +++ b/test/prism/fixtures/whitequark/endless_method_command_syntax.txt @@ -0,0 +1,15 @@ +def foo = puts "Hello" + +def foo() = puts "Hello" + +def foo(x) = puts x + +def obj.foo = puts "Hello" + +def obj.foo() = puts "Hello" + +def obj.foo(x) = puts x + +def rescued(x) = raise "to be caught" rescue "instance #{x}" + +def self.rescued(x) = raise "to be caught" rescue "class #{x}" |