Sha256: 10f639516952dc6e01aee7559feed6e1e2fcdbbfc2b094f9830f6525b192b799

Contents?: true

Size: 608 Bytes

Versions: 53

Compression:

Stored size: 608 Bytes

Contents

module A
  def a; end
  alias_method :b, :a

  # Handle keyword syntax too
  alias :c :a
  alias d? a
  alias [] a
  alias []= a
  alias -@ a
  alias % a
  alias * a
  alias for a
  alias ConstantName a

  # Handle quoted symbols
  alias :'foo' :'a'
end

class C
  def x; end
end

class B < C
  alias_method(:q, :x)
  alias_method :r?, :x
  alias_method :s, :to_s
  alias_method :t, :inspect if 500 == 3 * CONSTANT
  alias_method :<<, :a
  alias_method :for, :a
  alias do x
  alias x2 do
end

class D
  # Foo bar
  def a; "FOO" end

  # @return [String]
  alias b a

  # @return [Numeric]
  def a; 0 end
end

Version data entries

53 entries across 38 versions & 5 rubygems

Version Path
yard-0.8.7.2 spec/handlers/examples/alias_handler_001.rb.txt
candlepin-api-0.4.0 bundle/ruby/gems/yard-0.8.7/spec/handlers/examples/alias_handler_001.rb.txt
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/yard-0.8.7/spec/handlers/examples/alias_handler_001.rb.txt
candlepin-api-0.4.0 bundle/ruby/1.8/gems/yard-0.8.7/spec/handlers/examples/alias_handler_001.rb.txt
yard-0.8.7.1 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.8.7 spec/handlers/examples/alias_handler_001.rb.txt
challah-1.0.0 vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/alias_handler_001.rb.txt
yard-0.8.6.2 spec/handlers/examples/alias_handler_001.rb.txt
challah-1.0.0.beta3 vendor/bundle/gems/yard-0.8.6/spec/handlers/examples/alias_handler_001.rb.txt
challah-1.0.0.beta3 vendor/bundle/gems/yard-0.8.5.2/spec/handlers/examples/alias_handler_001.rb.txt
challah-1.0.0.beta3 vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/alias_handler_001.rb.txt
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/alias_handler_001.rb.txt
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/alias_handler_001.rb.txt
yard-0.8.6.1 spec/handlers/examples/alias_handler_001.rb.txt
challah-1.0.0.beta2 vendor/bundle/gems/yard-0.8.5.2/spec/handlers/examples/alias_handler_001.rb.txt
challah-1.0.0.beta2 vendor/bundle/gems/yard-0.8.6/spec/handlers/examples/alias_handler_001.rb.txt
yard-0.8.6 spec/handlers/examples/alias_handler_001.rb.txt
challah-1.0.0.beta vendor/bundle/gems/yard-0.8.5.2/spec/handlers/examples/alias_handler_001.rb.txt
challah-1.0.0.beta vendor/bundle/gems/yard-0.8.3/spec/handlers/examples/alias_handler_001.rb.txt
yard-0.8.5.2 spec/handlers/examples/alias_handler_001.rb.txt