Class: Source::Maven
Defined Under Namespace
Classes: Factory
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Attributes included from HasOptionMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(files_provider, options, effective_pom_reader) ⇒ Maven
constructor
A new instance of Maven.
Methods inherited from Base
constant_field, #contains_file?, #file_contents, #files, #maintainer
Methods included from HasOptionMethods
Constructor Details
#initialize(files_provider, options, effective_pom_reader) ⇒ Maven
Returns a new instance of Maven.
74 75 76 77 |
# File 'lib/gpm/source/maven.rb', line 74 def initialize(files_provider,,effective_pom_reader) @effective_pom_reader = effective_pom_reader super(files_provider, ) end |
Class Method Details
.from_pom(method_name, *path_in_pom) ⇒ Object
68 69 70 71 72 |
# File 'lib/gpm/source/maven.rb', line 68 def self.from_pom(method_name,*path_in_pom) define_method(method_name) do self.class.recursive_lookup(effective_pom,*path_in_pom) || Source::Base::DEFAULTS[method_name] end end |