aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/command_line/fixtures/debug.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/command_line/fixtures/debug.rb')
-rw-r--r--spec/ruby/command_line/fixtures/debug.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/ruby/command_line/fixtures/debug.rb b/spec/ruby/command_line/fixtures/debug.rb
new file mode 100644
index 0000000000..2d84c5faf6
--- /dev/null
+++ b/spec/ruby/command_line/fixtures/debug.rb
@@ -0,0 +1,10 @@
+which = ARGV.first.to_i
+
+case which
+when 0
+ puts "$DEBUG #{$DEBUG}"
+when 1
+ puts "$VERBOSE #{$VERBOSE}"
+when 2
+ puts "$-d #{$-d}"
+end