Module: Lara::Memories::ExportFormat

Defined in:
lib/lara/memories.rb

Overview

Supported memory export formats

Constant Summary collapse

TMX =
"tmx"
JTM =
"jtm"

Class Method Summary collapse

Class Method Details

.allArray<String>

Returns All supported formats.

Returns:

  • (Array<String>)

    All supported formats



11
12
13
# File 'lib/lara/memories.rb', line 11

def self.all
  [TMX, JTM]
end

.valid?(format) ⇒ Boolean

Returns True if the format is supported.

Parameters:

  • format (String)

    The format to validate

Returns:

  • (Boolean)

    True if the format is supported



17
18
19
# File 'lib/lara/memories.rb', line 17

def self.valid?(format)
  all.include?(format)
end