Class: FLV::Edit::Version

Inherits:
Struct
  • Object
show all
Defined in:
lib/flvedit/version.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#majorObject

Returns the value of attribute major

Returns:

  • (Object)

    the current value of major



5
6
7
# File 'lib/flvedit/version.rb', line 5

def major
  @major
end

#minorObject

Returns the value of attribute minor

Returns:

  • (Object)

    the current value of minor



5
6
7
# File 'lib/flvedit/version.rb', line 5

def minor
  @minor
end

#patchObject

Returns the value of attribute patch

Returns:

  • (Object)

    the current value of patch



5
6
7
# File 'lib/flvedit/version.rb', line 5

def patch
  @patch
end

Instance Method Details

#to_sObject



6
7
8
# File 'lib/flvedit/version.rb', line 6

def to_s
  "#{major}.#{minor}.#{patch}"
end