Class: RbsMacros::Config
- Inherits:
-
Object
- Object
- RbsMacros::Config
- Defined in:
- lib/rbs_macros/config.rb
Overview
Configuration for RbsMacros execution
Instance Attribute Summary collapse
-
#load_dirs ⇒ Object
readonly
Returns the value of attribute load_dirs.
-
#loader ⇒ Object
Returns the value of attribute loader.
-
#macros ⇒ Object
readonly
Returns the value of attribute macros.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#project ⇒ Object
Returns the value of attribute project.
-
#sigs ⇒ Object
readonly
Returns the value of attribute sigs.
-
#use_loader ⇒ Object
Returns the value of attribute use_loader.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 14 15 16 17 |
# File 'lib/rbs_macros/config.rb', line 9 def initialize @macros = [] @load_dirs = ["lib"] @sigs = ["sig"] @loader = RBS::EnvironmentLoader.new @use_loader = true @project = Project.new @output_dir = "sig/generated" end |
Instance Attribute Details
#load_dirs ⇒ Object (readonly)
Returns the value of attribute load_dirs.
6 7 8 |
# File 'lib/rbs_macros/config.rb', line 6 def load_dirs @load_dirs end |
#loader ⇒ Object
Returns the value of attribute loader.
7 8 9 |
# File 'lib/rbs_macros/config.rb', line 7 def loader @loader end |
#macros ⇒ Object (readonly)
Returns the value of attribute macros.
6 7 8 |
# File 'lib/rbs_macros/config.rb', line 6 def macros @macros end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
7 8 9 |
# File 'lib/rbs_macros/config.rb', line 7 def output_dir @output_dir end |
#project ⇒ Object
Returns the value of attribute project.
7 8 9 |
# File 'lib/rbs_macros/config.rb', line 7 def project @project end |
#sigs ⇒ Object (readonly)
Returns the value of attribute sigs.
6 7 8 |
# File 'lib/rbs_macros/config.rb', line 6 def sigs @sigs end |
#use_loader ⇒ Object
Returns the value of attribute use_loader.
7 8 9 |
# File 'lib/rbs_macros/config.rb', line 7 def use_loader @use_loader end |