Class: Version
- Inherits:
-
Object
- Object
- Version
- Defined in:
- lib/core/version.rb
Instance Attribute Summary collapse
-
#fix ⇒ Object
Returns the value of attribute fix.
-
#major ⇒ Object
Returns the value of attribute major.
-
#minor ⇒ Object
Returns the value of attribute minor.
Instance Method Summary collapse
- #dispose ⇒ Object
-
#initialize(major = 1, minor = 0, fix = 0) ⇒ Version
constructor
A new instance of Version.
- #set(major, minor, fix) ⇒ Object
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
#fix ⇒ Object
Returns the value of attribute fix.
2 3 4 |
# File 'lib/core/version.rb', line 2 def fix @fix end |
#major ⇒ Object
Returns the value of attribute major.
2 3 4 |
# File 'lib/core/version.rb', line 2 def major @major end |
#minor ⇒ Object
Returns the value of attribute minor.
2 3 4 |
# File 'lib/core/version.rb', line 2 def minor @minor end |
Instance Method Details
#dispose ⇒ Object
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 |