Class: Xberg::FormatMetadataText

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
FormatMetadata
Defined in:
lib/xberg/native.rb

Overview

Metadata extracted from a plain-text file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



2861
2862
2863
# File 'lib/xberg/native.rb', line 2861

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2913
2914
2915
# File 'lib/xberg/native.rb', line 2913

def self.from_hash(hash)
  new(value: hash[:_0] || hash["_0"])
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


2879
# File 'lib/xberg/native.rb', line 2879

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


2907
# File 'lib/xberg/native.rb', line 2907

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


2893
# File 'lib/xberg/native.rb', line 2893

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


2895
# File 'lib/xberg/native.rb', line 2895

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2909
2910
2911
# File 'lib/xberg/native.rb', line 2909

def code? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#csv?Boolean

Returns:

  • (Boolean)


2891
# File 'lib/xberg/native.rb', line 2891

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


2899
# File 'lib/xberg/native.rb', line 2899

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


2871
# File 'lib/xberg/native.rb', line 2871

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


2875
# File 'lib/xberg/native.rb', line 2875

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


2903
# File 'lib/xberg/native.rb', line 2903

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


2873
# File 'lib/xberg/native.rb', line 2873

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


2897
# File 'lib/xberg/native.rb', line 2897

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


2887
# File 'lib/xberg/native.rb', line 2887

def html? = false

#image?Boolean

Returns:

  • (Boolean)


2881
# File 'lib/xberg/native.rb', line 2881

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


2901
# File 'lib/xberg/native.rb', line 2901

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


2889
# File 'lib/xberg/native.rb', line 2889

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


2869
# File 'lib/xberg/native.rb', line 2869

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


2877
# File 'lib/xberg/native.rb', line 2877

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


2905
# File 'lib/xberg/native.rb', line 2905

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


2885
# File 'lib/xberg/native.rb', line 2885

def text? = true

#xml?Boolean

Returns:

  • (Boolean)


2883
# File 'lib/xberg/native.rb', line 2883

def xml? = false