Sha256: 243778feced4c48922bd5be131fcb67af0a08f1f505614d79de95f2d0ff73cca

Contents?: true

Size: 305 Bytes

Versions: 11

Compression:

Stored size: 305 Bytes

Contents

module Foo
  module_function
  def foo(x)
    x
  end
end

class Bar
  include Foo
  def bar
    foo(:y)
  end
end

Foo.foo(:x)
Bar.new.bar

__END__
# Classes
module Foo
  def foo: (:x | :y x) -> (:x | :y)
  def self.foo: (:x | :y x) -> (:x | :y)
end

class Bar
  include Foo

  def bar: -> (:x | :y)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/module_function2.rb
typeprof-0.15.3 smoke/module_function2.rb
typeprof-0.15.2 smoke/module_function2.rb
typeprof-0.15.1 smoke/module_function2.rb
typeprof-0.15.0 smoke/module_function2.rb
typeprof-0.14.1 smoke/module_function2.rb
typeprof-0.14.0 smoke/module_function2.rb
typeprof-0.13.0 smoke/module_function2.rb
typeprof-0.12.0 smoke/module_function2.rb
typeprof-0.11.0 smoke/module_function2.rb
typeprof-0.10.0 smoke/module_function2.rb