class ChefCLI::Policyfile::SolutionDependencies::Cookbook
def self.parse(str)
def self.parse(str) name, version_w_parens = str.split(" ") version = version_w_parens[/\(([^)]+)\)/, 1] new(name, version) end
def self.valid_str?(str)
def self.valid_str?(str) !!(str =~ VALID_STRING_FORMAT) end
def eql?(other)
def eql?(other) other.kind_of?(self.class) && other.name == name && other.version == version end
def hash
def hash [name, version].hash end
def to_s
def to_s "#{name} (#{version})" end