Class: RBS::Prototype::RB::Context
- Inherits:
-
Struct
- Object
- Struct
- RBS::Prototype::RB::Context
- Defined in:
- lib/rbs/prototype/rb.rb
Instance Attribute Summary collapse
-
#module_function ⇒ Object
Returns the value of attribute module_function.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#singleton ⇒ Object
Returns the value of attribute singleton.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#module_function ⇒ Object
Returns the value of attribute module_function
6 7 8 |
# File 'lib/rbs/prototype/rb.rb', line 6 def module_function @module_function end |
#namespace ⇒ Object
Returns the value of attribute namespace
6 7 8 |
# File 'lib/rbs/prototype/rb.rb', line 6 def namespace @namespace end |
#singleton ⇒ Object
Returns the value of attribute singleton
6 7 8 |
# File 'lib/rbs/prototype/rb.rb', line 6 def singleton @singleton end |
Class Method Details
Instance Method Details
#attribute_kind ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/rbs/prototype/rb.rb', line 21 def attribute_kind if singleton :singleton else :instance end end |
#method_kind ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/rbs/prototype/rb.rb', line 11 def method_kind if singleton :singleton elsif module_function :singleton_instance else :instance end end |