Class: Menkar::Detection

Inherits:
Object
  • Object
show all
Defined in:
sig/menkar.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#binary ⇒ Boolean (readonly)

Returns the value of attribute binary.

Returns:

  • (Boolean)


23
24
25
# File 'sig/menkar.rbs', line 23

def binary
  @binary
end

#bom ⇒ String (readonly)

Returns the value of attribute bom.

Returns:

  • (String)


20
21
22
# File 'sig/menkar.rbs', line 20

def bom
  @bom
end

#confidence ⇒ Float (readonly)

Returns the value of attribute confidence.

Returns:

  • (Float)


19
20
21
# File 'sig/menkar.rbs', line 19

def confidence
  @confidence
end

#encoding ⇒ Encoding? (readonly)

Returns the value of attribute encoding.

Returns:

  • (Encoding, nil)


18
19
20
# File 'sig/menkar.rbs', line 18

def encoding
  @encoding
end

#indent ⇒ Indent? (readonly)

Returns the value of attribute indent.

Returns:



22
23
24
# File 'sig/menkar.rbs', line 22

def indent
  @indent
end

#newline ⇒ :lf, ... (readonly)

Returns the value of attribute newline.

Returns:

  • (:lf, :crlf, :cr, :mixed, :none, nil)


21
22
23
# File 'sig/menkar.rbs', line 21

def newline
  @newline
end

Class Method Details

.new ⇒ Object



24
# File 'sig/menkar.rbs', line 24

def self.new: (Encoding? encoding, Float confidence, String bom,

Instance Method Details

#with ⇒ Object



28
# File 'sig/menkar.rbs', line 28

def with: (?encoding: Encoding?, ?confidence: Float, ?bom: String,