Sha256: 72f2c9a1eeee911a65523a676530224f1dfdee94a2a50622d6031b40ba874c2d

Contents?: true

Size: 681 Bytes

Versions: 28

Compression:

Stored size: 681 Bytes

Contents

class Something

  def self.classmethod
    1 + 1
  end

  # Other edge cases:

  def opt_args(arg1, arg2 = 42, *args)
    arg3 = arg1 * arg2 * 7
    puts(arg3.to_s)
    return "foo"
  end

  def multi_args(arg1, arg2)
    arg3 = arg1 * arg2 * 7
    puts(arg3.to_s)
    return "foo"
  end

  def unknown_args(arg1, arg2)
    # does nothing
    return arg1
  end

  def determine_args
    5 == unknown_args(4, "known")
  end

  # TODO: sort list
  def bbegin
    begin
      1
    rescue SyntaxError => e1
      2
    rescue Exception => e2
      3
    else
      4
    ensure
      5
    end
  end

  def bbegin_no_exception
    begin
      5
    rescue
      6
    end
  end
end

Version data entries

28 entries across 26 versions & 3 rubygems

Version Path
virtual_keywords-0.3.1 lib/parsetree/test/something.rb
virtual_keywords-0.3.0 lib/parsetree/test/something.rb
ParseTree-3.0.9 test/something.rb
ParseTree-3.0.8 test/something.rb
ParseTree-3.0.7 test/something.rb
ParseTree-3.0.6 test/something.rb
ParseTree-3.0.5 test/something.rb
ParseTree-3.0.4 test/something.rb
ParseTree-1.6.1 test/something.rb
ParseTree-1.7.0 test/something.rb
ParseTree-1.6.2 test/something.rb
ParseTree-1.6.3 test/something.rb
ParseTree-1.6.4 test/something.rb
ParseTree-2.1.0 test/something.rb
ParseTree-2.0.0 test/something.rb
ParseTree-2.1.1 test/something.rb
ParseTree-1.7.1 test/something.rb
ParseTree-2.0.1 test/something.rb
ParseTree-2.0.2 test/something.rb
ParseTree-3.0.0 test/something.rb