Class: FPM::Fry::Detector::String
- Inherits:
-
Struct
- Object
- Struct
- FPM::Fry::Detector::String
- Defined in:
- lib/fpm/fry/detector.rb
Instance Attribute Summary collapse
-
#distribution ⇒ Object
readonly
Returns the value of attribute distribution.
-
#value ⇒ Object
Returns the value of attribute value.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#distribution ⇒ Object (readonly)
Returns the value of attribute distribution.
7 8 9 |
# File 'lib/fpm/fry/detector.rb', line 7 def distribution @distribution end |
#value ⇒ Object
Returns the value of attribute value
6 7 8 |
# File 'lib/fpm/fry/detector.rb', line 6 def value @value end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
8 9 10 |
# File 'lib/fpm/fry/detector.rb', line 8 def version @version end |
Instance Method Details
#detect! ⇒ Object
10 11 12 13 |
# File 'lib/fpm/fry/detector.rb', line 10 def detect! @distribution, @version = value.split('-',2) return true end |