Files

POM::Package::SimpleStyle

Simple style VERSION file, is just a string.

1.0.0

Public Class Methods

match?(data) click to toggle source
# File lib/pom/package/simple_style.rb, line 10
def self.match?(data)
  return false unless String === data
  /^\d+\.\S+$/ =~ data.strip
end

Public Instance Methods

parse(data) click to toggle source
# File lib/pom/package/simple_style.rb, line 21
def parse(data)
  self.version = data.strip
end
render() click to toggle source
# File lib/pom/package/simple_style.rb, line 16
def render
  version.to_s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.