class DtkCommon::ModuleVersion
Public Class Methods
string_has_version_format?(str)
click to toggle source
# File lib/module_version.rb, line 21 def self.string_has_version_format?(str) !!(str =~ /\A\d{1,2}\.\d{1,2}\.\d{1,2}\Z/) end
string_master_or_emtpy?(str)
click to toggle source
# File lib/module_version.rb, line 25 def self.string_master_or_emtpy?(str) str.empty? || str.casecmp("master") || casecmp("default") end