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
4 5 6 |
# File 'lib/rbs/prototype/rb.rb', line 4 def module_function @module_function end |
#namespace ⇒ Object
Returns the value of attribute namespace
4 5 6 |
# File 'lib/rbs/prototype/rb.rb', line 4 def namespace @namespace end |
#singleton ⇒ Object
Returns the value of attribute singleton
4 5 6 |
# File 'lib/rbs/prototype/rb.rb', line 4 def singleton @singleton end |
Class Method Details
Instance Method Details
#attribute_kind ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/rbs/prototype/rb.rb', line 19 def attribute_kind if singleton :singleton else :instance end end |
#method_kind ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/rbs/prototype/rb.rb', line 9 def method_kind if singleton :singleton elsif module_function :singleton_instance else :instance end end |