Sha256: 66447b366616324e342deb1ea5ad43acd6353e4d02b47dda043708e5539f9952

Contents?: true

Size: 663 Bytes

Versions: 44

Compression:

Stored size: 663 Bytes

Contents

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

  # Handle keyword syntax too
  alias :c :a
  alias :"cstrkey" :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

44 entries across 40 versions & 6 rubygems

Version Path
yard-0.9.24 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.23 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.22 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.21 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.20 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.19 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.16 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.15 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.14 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.13 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.12 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.11 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.10 spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.9 spec/handlers/examples/alias_handler_001.rb.txt
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.4.0/gems/yard-0.9.8/spec/handlers/examples/alias_handler_001.rb.txt
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.2.0/gems/yard-0.9.8/spec/handlers/examples/alias_handler_001.rb.txt
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/yard-0.9.8/spec/handlers/examples/alias_handler_001.rb.txt
yard-0.9.8 spec/handlers/examples/alias_handler_001.rb.txt
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/spec/handlers/examples/alias_handler_001.rb.txt
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/spec/handlers/examples/alias_handler_001.rb.txt