Method: Chewy::Runtime::Version#initialize

Defined in:
lib/chewy/runtime/version.rb

#initialize(version) ⇒ Version

Returns a new instance of Version.



7
8
9
# File 'lib/chewy/runtime/version.rb', line 7

def initialize(version)
  @major, @minor, @patch = *(version.to_s.split('.', 3) + ([0] * 3)).first(3).map(&:to_i)
end