refactor: add proper attr_readers for important properties
This commit is contained in:
parent
807397bee0
commit
900c9d1a60
1 changed files with 7 additions and 3 deletions
|
@ -4,12 +4,16 @@ require_relative '../artefact_engine.rb'
|
||||||
|
|
||||||
module Comfpile
|
module Comfpile
|
||||||
class ParserArtefact < Comfpile::Artefact
|
class ParserArtefact < Comfpile::Artefact
|
||||||
def initialize(*args, **opts)
|
attr_reader :parsed_parameters
|
||||||
super(*args)
|
attr_reader :parsed_dependencies
|
||||||
|
|
||||||
@search_regexes = opts[:search_regexes]
|
def initialize(*args, search_regexes: nil, **opts)
|
||||||
|
super(*args, **opts)
|
||||||
|
|
||||||
|
@search_regexes = search_regexes
|
||||||
|
|
||||||
@parsed_parameters = {}
|
@parsed_parameters = {}
|
||||||
|
@parsed_dependencies = {}
|
||||||
|
|
||||||
parent_artefact :sourcefile, @target
|
parent_artefact :sourcefile, @target
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue