Sha256: 37107511e964171b4a2a5748021bac0d1d51a113c56e86d9aa7742d6d0be82bc

Contents?: true

Size: 305 Bytes

Versions: 3

Compression:

Stored size: 305 Bytes

Contents

module Foo
  def foo(x)
    x
  end
  module_function :foo
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 | :y)
  def self.foo: (:x | :y) -> (:x | :y)
end

class Bar
  include Foo
  def bar: -> (:x | :y)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typeprof-0.9.2 smoke/module_function1.rb
typeprof-0.9.1 smoke/module_function1.rb
typeprof-0.9.0 smoke/module_function1.rb