Module: ArrPM::V2::Type

Defined in:
lib/arr-pm/v2/type.rb

Constant Summary collapse

BINARY =
0
SOURCE =
1

Class Method Summary collapse

Class Method Details

.valid?(value) ⇒ Boolean

Is a given rpm type value valid?

The only valid types are BINARY (0) or SOURCE (1)

Returns:

  • (Boolean)


12
13
14
# File 'lib/arr-pm/v2/type.rb', line 12

def valid?(value)
  return (value == BINARY || value == SOURCE)
end