Class: Headdesk::APKResourcesDescriber
- Inherits:
-
Object
- Object
- Headdesk::APKResourcesDescriber
- Defined in:
- lib/headdesk/descriptionator/resources.rb
Overview
Descriptions for APK methods
:reek:RepeatedConditional
Instance Method Summary collapse
- #file?(file_name) ⇒ Boolean
-
#initialize(mode_unless) ⇒ APKResourcesDescriber
constructor
A new instance of APKResourcesDescriber.
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
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 |