class Shard::Ref
Constants
- PATTERN
#
Declarations #
#
Public Class Methods
parse(shard_line)
click to toggle source
#
Class Methods #
#
# File lib/shard/ref.rb, line 19 def self.parse(shard_line) if matcher = shard_line.match(PATTERN) user = matcher[1] name = matcher[2] file = nil version = 'HEAD' new(user, name, file, version) else nil end end
valid?(shard_line)
click to toggle source
# File lib/shard/ref.rb, line 32 def self.valid?(shard_line) shard_line =~ PATTERN end