Class: RBS::Prototype::RB::Context
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Struct
|
|
Inherits: |
Struct
|
Defined in: | lib/rbs/prototype/rb.rb |
Class Method Summary
Instance Attribute Summary
- #module_function rw
- #namespace rw
- #singleton rw
Instance Method Summary
Class Method Details
.initial(namespace: Namespace.root)
[ GitHub ]Instance Attribute Details
#module_function (rw)
[ GitHub ]#namespace (rw)
[ GitHub ]# File 'lib/rbs/prototype/rb.rb', line 4
Context = Struct.new(:module_function, :singleton, :namespace, keyword_init: true)
#singleton (rw)
[ GitHub ]# File 'lib/rbs/prototype/rb.rb', line 4
Context = Struct.new(:module_function, :singleton, :namespace, keyword_init: true)
Instance Method Details
#attribute_kind
[ GitHub ]#method_kind
[ GitHub ]# File 'lib/rbs/prototype/rb.rb', line 9
def method_kind if singleton :singleton elsif module_function :singleton_instance else :instance end end