Class: RbsMacros::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rbs_macros/config.rb

Overview

Configuration for RbsMacros execution

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_dirsObject (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

#loaderObject

Returns the value of attribute loader.



7
8
9
# File 'lib/rbs_macros/config.rb', line 7

def loader
  @loader
end

#macrosObject (readonly)

Returns the value of attribute macros.



6
7
8
# File 'lib/rbs_macros/config.rb', line 6

def macros
  @macros
end

#output_dirObject

Returns the value of attribute output_dir.



7
8
9
# File 'lib/rbs_macros/config.rb', line 7

def output_dir
  @output_dir
end

#projectObject

Returns the value of attribute project.



7
8
9
# File 'lib/rbs_macros/config.rb', line 7

def project
  @project
end

#sigsObject (readonly)

Returns the value of attribute sigs.



6
7
8
# File 'lib/rbs_macros/config.rb', line 6

def sigs
  @sigs
end

#use_loaderObject

Returns the value of attribute use_loader.



7
8
9
# File 'lib/rbs_macros/config.rb', line 7

def use_loader
  @use_loader
end