Sha256: 9e796283c19fb5d8fa86881efe727f18bb1cba2d88196390c47eeb6c6cf79581

Contents?: true

Size: 155 Bytes

Versions: 1

Compression:

Stored size: 155 Bytes

Contents

class String
  def to_version
    Semantic::Version.new self
  end

  def is_version?
    (match Semantic::Version::SemVerRegexp) ? true : false
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
semantic-1.6.1 lib/semantic/core_ext.rb