Parent

Something

Public Class Methods

classmethod() click to toggle source
# File test/something.rb, line 4
def self.classmethod
  1 + 1
end

Public Instance Methods

bbegin() click to toggle source

TODO: sort list

# File test/something.rb, line 32
def bbegin
  begin
    1
  rescue SyntaxError => e1
    2
  rescue Exception => e2
    3
  else
    4
  ensure
    5
  end
end
bbegin_no_exception() click to toggle source
# File test/something.rb, line 46
def bbegin_no_exception
  begin
    5
  rescue
    6
  end
end
determine_args() click to toggle source
# File test/something.rb, line 27
def determine_args
  5 == unknown_args(4, "known")
end
multi_args(arg1, arg2) click to toggle source
# File test/something.rb, line 16
def multi_args(arg1, arg2)
  arg3 = arg1 * arg2 * 7
  puts(arg3.to_s)
  return "foo"
end
opt_args(arg1, arg2 = 42, *args) click to toggle source

Other edge cases:

# File test/something.rb, line 10
def opt_args(arg1, arg2 = 42, *args)
  arg3 = arg1 * arg2 * 7
  puts(arg3.to_s)
  return "foo"
end
unknown_args(arg1, arg2) click to toggle source
# File test/something.rb, line 22
def unknown_args(arg1, arg2)
  # does nothing
  return arg1
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.