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



3354
3355
3356
# File 'lib/xberg/native.rb', line 3354

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3407
3408
3409
# File 'lib/xberg/native.rb', line 3407

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3403
3404
3405
# File 'lib/xberg/native.rb', line 3403

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = true

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false