Class: Steep::Project::DSL::GroupDSL
- Includes:
- WithPattern
- Defined in:
- lib/steep/project/dsl.rb
Instance Attribute Summary collapse
-
#code_diagnostics_config ⇒ Object
readonly
Returns the value of attribute code_diagnostics_config.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
- #configure_code_diagnostics(config = nil) ⇒ Object
-
#initialize(name, target) ⇒ GroupDSL
constructor
A new instance of GroupDSL.
Methods included from WithPattern
#check, #ignore, #ignore_signature, #ignored_inline_sources, #ignored_signatures, #ignored_sources, #inline_source_pattern, #inline_sources, #signature, #signature_pattern, #signatures, #source_pattern, #sources
Constructor Details
#initialize(name, target) ⇒ GroupDSL
Returns a new instance of GroupDSL.
214 215 216 217 |
# File 'lib/steep/project/dsl.rb', line 214 def initialize(name, target) @name = name @target = target end |
Instance Attribute Details
#code_diagnostics_config ⇒ Object (readonly)
Returns the value of attribute code_diagnostics_config.
212 213 214 |
# File 'lib/steep/project/dsl.rb', line 212 def code_diagnostics_config @code_diagnostics_config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
208 209 210 |
# File 'lib/steep/project/dsl.rb', line 208 def name @name end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
210 211 212 |
# File 'lib/steep/project/dsl.rb', line 210 def target @target end |
Instance Method Details
#configure_code_diagnostics(config = nil) ⇒ Object
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/steep/project/dsl.rb', line 219 def configure_code_diagnostics(config = nil) if block_given? if code_diagnostics_config if config code_diagnostics_config.merge!(config) end else @code_diagnostics_config = (config || target.code_diagnostics_config).dup end yield (code_diagnostics_config || raise) else @code_diagnostics_config = config&.dup end end |