Class: Vim::Flavor::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/vim-flavor/version.rb

Class Method Summary collapse

Class Method Details

.correct?(*args) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/vim-flavor/version.rb', line 14

def self.correct?(*args)
  PlainVersion.correct?(*args)
end

.create(arg) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/vim-flavor/version.rb', line 6

def self.create(arg)
  if String === arg
    PlainVersion.create(arg)
  else
    BranchVersion.new(arg[:branch], arg[:revision])
  end
end