Class: FPM::Fry::Detector::String

Inherits:
Struct
  • Object
show all
Defined in:
lib/fpm/fry/detector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#distributionObject (readonly)

Returns the value of attribute distribution.



7
8
9
# File 'lib/fpm/fry/detector.rb', line 7

def distribution
  @distribution
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



6
7
8
# File 'lib/fpm/fry/detector.rb', line 6

def value
  @value
end

#versionObject (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