lib/headdesk/descriptionator.rb in headdesk-0.8.0 vs lib/headdesk/descriptionator.rb in headdesk-0.9.0

- old
+ new

@@ -1,7 +1,9 @@ # frozen_string_literal: true +require 'headdesk/descriptionator/resources' + module Headdesk # # Descriptions for APK methods # # :reek:RepeatedConditional @@ -18,9 +20,13 @@ "APK targets API #{@unless ? '>=' : '<'} #{gt_eq}" end def min_sdk(gt_eq) "APK requires #{@unless ? 'at least' : 'less than'} API #{gt_eq}" + end + + def resources + @resources ||= APKResourcesDescriber.new(@unless) end end # # Turn parameters passed skip_check and fail_check into descriptions