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



3252
3253
3254
# File 'lib/xberg/native.rb', line 3252

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3305
3306
3307
# File 'lib/xberg/native.rb', line 3305

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3301
3302
3303
# File 'lib/xberg/native.rb', line 3301

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = true

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false