Class: Solargraph::RbsMap::Conversions::Context
- Inherits:
-
Object
- Object
- Solargraph::RbsMap::Conversions::Context
- Defined in:
- lib/solargraph/rbs_map/conversions.rb
Overview
A container for tracking the current context of the RBS conversion process, e.g., what visibility is declared for methods in the current scope
Instance Attribute Summary collapse
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Instance Method Summary collapse
-
#initialize(visibility = :public) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(visibility = :public) ⇒ Context
Returns a new instance of Context.
16 17 18 |
# File 'lib/solargraph/rbs_map/conversions.rb', line 16 def initialize visibility = :public @visibility = visibility end |
Instance Attribute Details
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility.
13 14 15 |
# File 'lib/solargraph/rbs_map/conversions.rb', line 13 def visibility @visibility end |