Sha256: 5ef3da0383d4b2c49d1a50e063a61729dd0890e2290db4c072958a39fb55117f

Contents?: true

Size: 1.61 KB

Versions: 83

Compression:

Stored size: 1.61 KB

Contents

module MethodSpecs
  class Methods
    def foo
      true
    end
    alias bar foo

    attr_accessor :attr

    def zero; end
    def one_req(a); end
    def two_req(a, b); end

    def zero_with_block(&block); end
    def one_req_with_block(a, &block); end
    def two_req_with_block(a, b, &block); end

    def one_opt(a=nil); end
    def one_req_one_opt(a, b=nil); end
    def one_req_two_opt(a, b=nil, c=nil); end
    def two_req_one_opt(a, b, c=nil); end

    def one_opt_with_block(a=nil, &block); end
    def one_req_one_opt_with_block(a, b=nil, &block); end
    def one_req_two_opt_with_block(a, b=nil, c=nil, &block); end
    def two_req_one_opt_with_block(a, b, c=nil, &block); end

    def zero_with_splat(*a); end
    def one_req_with_splat(a, *b); end
    def two_req_with_splat(a, b, *c); end
    def one_req_one_opt_with_splat(a, b=nil, *c); end
    def two_req_one_opt_with_splat(a, b, c=nil, *d); end
    def one_req_two_opt_with_splat(a, b=nil, c=nil, *d); end

    def zero_with_splat_and_block(*a, &block); end
    def one_req_with_splat_and_block(a, *b, &block); end
    def two_req_with_splat_and_block(a, b, *c, &block); end
    def one_req_one_opt_with_splat_and_block(a, b=nil, *c, &block); end
    def two_req_one_opt_with_splat_and_block(a, b, c=nil, *d, &block); end
    def one_req_two_opt_with_splat_and_block(a, b=nil, c=nil, *d, &block); end
  end

  module MyMod
    def bar; :bar; end
  end

  class MySuper
    include MyMod
  end

  class MySub < MySuper; end

  class A
    def baz(a, b)
      self.class
    end
  end

  class B < A
  end

  class C < B
  end

  class D
    def bar() 'done' end
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
rhodes-2.0.2 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.rc2 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.rc1 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.beta11 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.beta10 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.beta9 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.beta8 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.beta7 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.beta6 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.beta4 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.beta3 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-1.5.5 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.beta2 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-2.0.0.beta1 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-1.5.4 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-1.5.3 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-1.5.2 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-1.5.1 spec/framework_spec/app/spec/core/method/fixtures/classes.rb
rhodes-1.5.0 spec/framework_spec/app/spec/core/method/fixtures/classes.rb