Sha256: 8813d521dc9f4cd4c7953a90c6ec3d739606b8a7bfd152994512a34c778dbec0

Contents?: true

Size: 1.04 KB

Versions: 8

Compression:

Stored size: 1.04 KB

Contents

module Mihari
  module Structs
    class Rule
      attr_reader data: Hash

      attr_reader yaml: String

      attr_reader errors: Array[untypes]?

      def initialize: (Hash data) -> void

      #
      # @return [Boolean]
      #
      def errors?: () -> (bool)

      #
      # @return [Array[String]]
      #
      def error_messages: () -> (Array[String])

      def validate: () -> void

      def validate!: () -> void

      def []: (untyped key) -> untyped

      #
      # @return [String]
      #
      def id: () -> String

      #
      # @return [String]
      #
      def title: () -> String

      #
      # @return [String]
      #
      def description: () -> String

      #
      # @return [Mihari::Rule]
      #
      def to_model: () -> Mihari::Rule

      def to_analyzer: () -> Mihari::Analyzers::Rule

      def self.from_model: (Mihari::Rule model) -> Mihari::Structs::Rule

      def self.from_yaml: (String yaml) -> Mihari::Structs::Rule

      def self.from_path_or_id: (String path_or_id) -> Mihari::Structs::Rule
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mihari-4.12.0 sig/lib/mihari/structs/rule.rbs
mihari-4.11.0 sig/lib/mihari/structs/rule.rbs
mihari-4.10.0 sig/lib/mihari/structs/rule.rbs
mihari-4.9.0 sig/lib/mihari/structs/rule.rbs
mihari-4.8.0 sig/lib/mihari/structs/rule.rbs
mihari-4.7.4 sig/lib/mihari/structs/rule.rbs
mihari-4.7.3 sig/lib/mihari/structs/rule.rbs
mihari-4.7.2 sig/lib/mihari/structs/rule.rbs