Module: MavenPom

Defined in:
lib/maven_pom.rb,
lib/maven_pom/pom.rb,
lib/maven_pom/error.rb,
lib/maven_pom/sorter.rb,
lib/maven_pom/version.rb

Defined Under Namespace

Classes: CyclicDependencyError, MissingGroupIdError, Pom, Sorter

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.allObject



9
10
11
# File 'lib/maven_pom.rb', line 9

def self.all
  @loaded ||= {}
end

.from(path) ⇒ Object



13
14
15
# File 'lib/maven_pom.rb', line 13

def self.from(path)
  Pom.new File.read(path), path
end

.sort(poms) ⇒ Object



17
18
19
# File 'lib/maven_pom.rb', line 17

def self.sort(poms)
  Sorter.new(poms).sort
end