Class: Refinery::Version
- Inherits:
-
Object
- Object
- Refinery::Version
- Defined in:
- lib/refinery/version.rb
Class Attribute Summary collapse
-
.build ⇒ Object
readonly
Returns the value of attribute build.
-
.major ⇒ Object
readonly
Returns the value of attribute major.
-
.minor ⇒ Object
readonly
Returns the value of attribute minor.
-
.tiny ⇒ Object
readonly
Returns the value of attribute tiny.
Class Method Summary collapse
Class Attribute Details
.build ⇒ Object (readonly)
Returns the value of attribute build.
9 10 11 |
# File 'lib/refinery/version.rb', line 9 def build @build end |
.major ⇒ Object (readonly)
Returns the value of attribute major.
9 10 11 |
# File 'lib/refinery/version.rb', line 9 def major @major end |
.minor ⇒ Object (readonly)
Returns the value of attribute minor.
9 10 11 |
# File 'lib/refinery/version.rb', line 9 def minor @minor end |
.tiny ⇒ Object (readonly)
Returns the value of attribute tiny.
9 10 11 |
# File 'lib/refinery/version.rb', line 9 def tiny @tiny end |
Class Method Details
.required_ruby_version ⇒ Object
15 16 17 |
# File 'lib/refinery/version.rb', line 15 def required_ruby_version '>= 2.2.2' end |
.to_s ⇒ Object
11 12 13 |
# File 'lib/refinery/version.rb', line 11 def to_s [@major, @minor, @tiny, @build].compact.join('.') end |