Class: Browsable::Doctor::Tool

Inherits:
Data
  • Object
show all
Defined in:
lib/browsable/doctor.rb

Overview

A tool browsable depends on. ‘binary` is nil for packages that ship no executable (checked via the global npm tree instead). `enables` lists the analyzer kinds the tool unlocks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#binaryObject (readonly)

Returns the value of attribute binary

Returns:

  • (Object)

    the current value of binary



18
19
20
# File 'lib/browsable/doctor.rb', line 18

def binary
  @binary
end

#enablesObject (readonly)

Returns the value of attribute enables

Returns:

  • (Object)

    the current value of enables



18
19
20
# File 'lib/browsable/doctor.rb', line 18

def enables
  @enables
end

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



18
19
20
# File 'lib/browsable/doctor.rb', line 18

def key
  @key
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



18
19
20
# File 'lib/browsable/doctor.rb', line 18

def label
  @label
end

#npm_packageObject (readonly)

Returns the value of attribute npm_package

Returns:

  • (Object)

    the current value of npm_package



18
19
20
# File 'lib/browsable/doctor.rb', line 18

def npm_package
  @npm_package
end

#purposeObject (readonly)

Returns the value of attribute purpose

Returns:

  • (Object)

    the current value of purpose



18
19
20
# File 'lib/browsable/doctor.rb', line 18

def purpose
  @purpose
end

#requiredObject (readonly)

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



18
19
20
# File 'lib/browsable/doctor.rb', line 18

def required
  @required
end

Instance Method Details

#binary?Boolean

Returns:

  • (Boolean)


19
# File 'lib/browsable/doctor.rb', line 19

def binary? = !binary.nil?