Module: Rye::VERSION
- Defined in:
- lib/rye.rb
Class Attribute Summary collapse
-
.path ⇒ Object
readonly
Returns the value of attribute path.
-
.version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Class Attribute Details
.path ⇒ Object (readonly)
Returns the value of attribute path.
55 56 57 |
# File 'lib/rye.rb', line 55 def path @path end |
.version ⇒ Object (readonly)
Returns the value of attribute version.
55 56 57 |
# File 'lib/rye.rb', line 55 def version @version end |
Class Method Details
.inspect ⇒ Object
66 |
# File 'lib/rye.rb', line 66 def inspect() version end |
.prerelease? ⇒ Boolean
63 |
# File 'lib/rye.rb', line 63 def prerelease?() false end |
.read_version ⇒ Object
59 60 61 62 |
# File 'lib/rye.rb', line 59 def read_version return if @version @version = File.read(path).strip! end |
.to_a ⇒ Object
64 |
# File 'lib/rye.rb', line 64 def to_a() version.split('.') end |
.to_s ⇒ Object
65 |
# File 'lib/rye.rb', line 65 def to_s() version end |