Sha256: dcc871b78367030d1bd3bd573c9f6ddf46295bc8713a9cb079291d215043a9ca

Contents?: true

Size: 761 Bytes

Versions: 5

Compression:

Stored size: 761 Bytes

Contents

class Foo
  def ==(other)
    'hello' 
  end
  def /(other) 'hi' end

  attr_reader :method1

  def method1
    def dynamic; end
  end
 
  def self.method2; end

  # Docstring
  def String :: hello; "" end

  def [](key = 'default') puts key end
  def []=(key, value) end
  def 
allowed?
end

  def ` param; end
  def /(x = File.new('x', 'w'), y = 2) end
  def |; end; def =~ ()
  def -@; end; 
end
  def *(o) def +@; end
    def ~@
    end end
  def &(o) end
  def %(o) end
  def ^(o) end
  
  def optsmeth(x, opts = {}) end
  def blockmeth(x, &block) end

  # @param a [Fixnum]
  # @overload def bar(a, b = 1)
  #   @param a [String]
  #   @return [String]
  # @overload def baz(b, c)
  #   @return [Fixnum]
  # @overload bang(d, e)
  def foo(*args); end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yard-0.2.3.5 spec/handlers/examples/method_handler_001.rb.txt
yard-0.2.3.4 spec/handlers/examples/method_handler_001.rb.txt
yard-0.2.3.2 spec/handlers/examples/method_handler_001.rb.txt
yard-0.2.3.3 spec/handlers/examples/method_handler_001.rb.txt
yard-0.2.3 spec/handlers/examples/method_handler_001.rb.txt