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
- #in_def rw
- #module_function rw
- #namespace rw
- #singleton rw
Instance Method Summary
Class Method Details
.initial(namespace: Namespace.root)
[ GitHub ]Instance Attribute Details
#in_def (rw)
[ GitHub ]# File 'lib/rbs/prototype/rb.rb', line 8
class Context < Struct.new(:module_function, :singleton, :namespace, :in_def, keyword_init: true)
#module_function (rw)
[ GitHub ]#namespace (rw)
[ GitHub ]# File 'lib/rbs/prototype/rb.rb', line 8
class Context < Struct.new(:module_function, :singleton, :namespace, :in_def, keyword_init: true)
#singleton (rw)
[ GitHub ]# File 'lib/rbs/prototype/rb.rb', line 8
class Context < Struct.new(:module_function, :singleton, :namespace, :in_def, keyword_init: true)
Instance Method Details
#attribute_kind
[ GitHub ]#enter_namespace(namespace)
[ GitHub ]#method_kind
[ GitHub ]# File 'lib/rbs/prototype/rb.rb', line 15
def method_kind if singleton :singleton elsif module_function :singleton_instance else :instance end end
#update(module_function: self.module_function, singleton: self.singleton, in_def: self.in_def)
[ GitHub ]# File 'lib/rbs/prototype/rb.rb', line 37
def update(module_function: self.module_function, singleton: self.singleton, in_def: self.in_def) Context.new(module_function: module_function, singleton: singleton, namespace: namespace, in_def: in_def) end