Class: Version

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(major = 1, minor = 0, fix = 0) ⇒ Version

Returns a new instance of Version.



4
5
6
# File 'lib/core/version.rb', line 4

def initialize(major=1,minor=0,fix=0)
    self.set(major,minor,fix)
end

Instance Attribute Details

#fixObject

Returns the value of attribute fix.



2
3
4
# File 'lib/core/version.rb', line 2

def fix
  @fix
end

#majorObject

Returns the value of attribute major.



2
3
4
# File 'lib/core/version.rb', line 2

def major
  @major
end

#minorObject

Returns the value of attribute minor.



2
3
4
# File 'lib/core/version.rb', line 2

def minor
  @minor
end

Instance Method Details

#disposeObject



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

def dispose
end

#set(major, minor, fix) ⇒ Object



10
11
12
13
14
# File 'lib/core/version.rb', line 10

def set(major,minor,fix)
    @major = major
    @minof = minor
    @fix = fix
end