Sha256: 1765d264af15b95e49a8a0f1a37136754941a57b39b1a2f598d80bc255bbc470

Contents?: true

Size: 827 Bytes

Versions: 10

Compression:

Stored size: 827 Bytes

Contents

module Mihari
  module Mixins
    module Rule
      def load_erb_yaml: (String yaml) -> Hash

      #
      # Load rule into hash
      #
      # @param [String] path_or_id
      #
      # @return [Mihari::Structs::Rule::Rule]
      #
      def load_rule: (String path_or_id) -> Mihari::Structs::Rule::Rule

      #
      # Returns a template for rule
      #
      # @return [String] A template for rule
      #
      def rule_template: () -> String

      def validate_rule!: (Mihari::Structs::Rule::Rule rule) -> nil

      #
      # Create (blank) rule file
      #
      # @param [String] filename
      # @param [Dry::Files] files
      # @param [String] template
      #
      # @return [nil]
      #
      def initialize_rule_yaml: (String filename, ?untyped files, ?template: String template) -> nil
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mihari-4.7.1 sig/lib/mihari/mixins/rule.rbs
mihari-4.7.0 sig/lib/mihari/mixins/rule.rbs
mihari-4.6.1 sig/lib/mihari/mixins/rule.rbs
mihari-4.6.0 sig/lib/mihari/mixins/rule.rbs
mihari-4.5.3 sig/lib/mihari/mixins/rule.rbs
mihari-4.5.2 sig/lib/mihari/mixins/rule.rbs
mihari-4.5.1 sig/lib/mihari/mixins/rule.rbs
mihari-4.5.0 sig/lib/mihari/mixins/rule.rbs
mihari-4.4.1 sig/lib/mihari/mixins/rule.rbs
mihari-4.4.0 sig/lib/mihari/mixins/rule.rbs