Class: Headdesk::APKResourcesDescriber

Inherits:
Object
  • Object
show all
Defined in:
lib/headdesk/descriptionator/resources.rb

Overview

Descriptions for APK methods

:reek:RepeatedConditional

Instance Method Summary collapse

Constructor Details

#initialize(mode_unless) ⇒ APKResourcesDescriber

Returns a new instance of APKResourcesDescriber.



9
10
11
# File 'lib/headdesk/descriptionator/resources.rb', line 9

def initialize(mode_unless)
  @unless = mode_unless
end

Instance Method Details

#file?(file_name) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/headdesk/descriptionator/resources.rb', line 13

def file?(file_name)
  "APK #{@unless ? 'contains' : 'does not contain'} resource file '#{file_name}'"
end