Module: TTY::Config::Marshaller::ExtensionsStore

Defined in:
lib/tty/config/marshaller.rb

Instance Method Summary collapse

Instance Method Details

#extObject


18
19
20
# File 'lib/tty/config/marshaller.rb', line 18

def ext
  @ext ||= []
end

#extension(*extensions) ⇒ Object

Set a list of extensions

Examples:

extenion "ext1", "ext2", "ext3"

28
29
30
31
32
33
34
# File 'lib/tty/config/marshaller.rb', line 28

def extension(*extensions)
  if extensions[0].is_a?(Array)
    @ext = extensions[0]
  else
    @ext = extensions
  end
end