Sha256: fce16c0c3a9658adb15cf64066ddabbec1c52eec8f5eee90ca93a4b5bb289d07

Contents?: true

Size: 997 Bytes

Versions: 37

Compression:

Stored size: 997 Bytes

Contents

module Mihari
  class TypeChecker
    # extend Dry::Initializer

    def initialize: (*untyped args, **untyped kwargs) -> void

    # @return [true, false]
    def hash?: () -> bool

    # @return [true, false]
    def ip?: () -> bool

    # @return [true, false]
    def domain?: () -> bool

    # @return [true, false]
    def url?: () -> bool

    # @return [true, false]
    def mail?: () -> bool

    # @return [String, nil]
    def type: () -> ("hash" | "ip" | "domain" | "url" | nil)

    # @return [String, nil]
    def detailed_type: () -> ("md5" | "sha1" | "sha256" | "sha512" | nil)

    # @return [String, nil]
    def self.type: (untyped data) -> String?

    # @return [String, nil]
    def self.detailed_type: (untyped data) -> String?

    private

    # @return [true, false]
    def md5?: () -> bool

    # @return [true, false]
    def sha1?: () -> bool

    # @return [true, false]
    def sha256?: () -> bool

    # @return [true, false]
    def sha512?: () -> bool
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
mihari-4.12.0 sig/lib/mihari/type_checker.rbs
mihari-4.11.0 sig/lib/mihari/type_checker.rbs
mihari-4.10.0 sig/lib/mihari/type_checker.rbs
mihari-4.9.0 sig/lib/mihari/type_checker.rbs
mihari-4.8.0 sig/lib/mihari/type_checker.rbs
mihari-4.7.4 sig/lib/mihari/type_checker.rbs
mihari-4.7.3 sig/lib/mihari/type_checker.rbs
mihari-4.7.2 sig/lib/mihari/type_checker.rbs
mihari-4.7.1 sig/lib/mihari/type_checker.rbs
mihari-4.7.0 sig/lib/mihari/type_checker.rbs
mihari-4.6.1 sig/lib/mihari/type_checker.rbs
mihari-4.6.0 sig/lib/mihari/type_checker.rbs
mihari-4.5.3 sig/lib/mihari/type_checker.rbs
mihari-4.5.2 sig/lib/mihari/type_checker.rbs
mihari-4.5.1 sig/lib/mihari/type_checker.rbs
mihari-4.5.0 sig/lib/mihari/type_checker.rbs
mihari-4.4.1 sig/lib/mihari/type_checker.rbs
mihari-4.4.0 sig/lib/mihari/type_checker.rbs
mihari-4.3.0 sig/lib/mihari/type_checker.rbs
mihari-4.2.0 sig/lib/mihari/type_checker.rbs