Class: RBS::Dynamic::Builder::Module
- Inherits:
-
Base
- Object
- Base
- RBS::Dynamic::Builder::Module
- Defined in:
- lib/rbs/dynamic/builder.rb
Instance Attribute Summary collapse
-
#module ⇒ Object
readonly
Returns the value of attribute module.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(module_) ⇒ Module
constructor
A new instance of Module.
Constructor Details
#initialize(module_) ⇒ Module
Returns a new instance of Module.
144 145 146 147 |
# File 'lib/rbs/dynamic/builder.rb', line 144 def initialize(module_) super() @module = module_ end |
Instance Attribute Details
#module ⇒ Object (readonly)
Returns the value of attribute module.
142 143 144 |
# File 'lib/rbs/dynamic/builder.rb', line 142 def module @module end |
Instance Method Details
#build ⇒ Object
149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/rbs/dynamic/builder.rb', line 149 def build RBS::AST::Declarations::Module.new( name: self.module.name, type_params: [], self_types: [], members: build_members, location: nil, annotations: [], comment: nil ) end |