Class: Steep::Project::Group
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.
-
#signature_pattern ⇒ Object
readonly
Returns the value of attribute signature_pattern.
-
#source_pattern ⇒ Object
readonly
Returns the value of attribute source_pattern.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, name, source_pattern, signature_pattern, code_diagnostics_config) ⇒ Group
constructor
A new instance of Group.
- #possible_signature_file?(path) ⇒ Boolean
- #possible_source_file?(path) ⇒ Boolean
- #project ⇒ Object
Constructor Details
#initialize(target, name, source_pattern, signature_pattern, code_diagnostics_config) ⇒ Group
Returns a new instance of Group.
10 11 12 13 14 15 16 |
# File 'lib/steep/project/group.rb', line 10 def initialize(target, name, source_pattern, signature_pattern, code_diagnostics_config) @target = target @name = name @source_pattern = source_pattern @signature_pattern = signature_pattern @code_diagnostics_config = code_diagnostics_config end |
Instance Attribute Details
#code_diagnostics_config ⇒ Object (readonly)
Returns the value of attribute code_diagnostics_config.
8 9 10 |
# File 'lib/steep/project/group.rb', line 8 def code_diagnostics_config @code_diagnostics_config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/steep/project/group.rb', line 4 def name @name end |
#signature_pattern ⇒ Object (readonly)
Returns the value of attribute signature_pattern.
6 7 8 |
# File 'lib/steep/project/group.rb', line 6 def signature_pattern @signature_pattern end |
#source_pattern ⇒ Object (readonly)
Returns the value of attribute source_pattern.
5 6 7 |
# File 'lib/steep/project/group.rb', line 5 def source_pattern @source_pattern end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
7 8 9 |
# File 'lib/steep/project/group.rb', line 7 def target @target end |
Instance Method Details
#possible_signature_file?(path) ⇒ Boolean
26 27 28 |
# File 'lib/steep/project/group.rb', line 26 def possible_signature_file?(path) signature_pattern =~ path end |
#possible_source_file?(path) ⇒ Boolean
22 23 24 |
# File 'lib/steep/project/group.rb', line 22 def possible_source_file?(path) source_pattern =~ path end |
#project ⇒ Object
18 19 20 |
# File 'lib/steep/project/group.rb', line 18 def project target.project end |