Module: BigKeeper::ModuleType

Defined in:
lib/big_keeper/model/podfile_type.rb

Constant Summary collapse

PATH =
1
GIT =
2
SPEC =
3

Class Method Summary collapse

Class Method Details

.regex(type) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/big_keeper/model/podfile_type.rb', line 7

def self.regex(type)
  if PATH == type
    "\s*:path\s*=>\s*"
  elsif GIT == type
    "\s*:git\s*=>\s*"
  elsif SPEC == type
    "\s*'"
  else
    name
  end
end