Class: Hash

Inherits:
Object show all
Defined in:
lib/marso/launcher.rb

Instance Method Summary collapse

Instance Method Details

#ids_selectionObject



19
20
21
# File 'lib/marso/launcher.rb', line 19

def ids_selection
  self[:select].nil? ? [] : self[:select].is_a?(Array) ? self[:select] : [self[:select]]
end

#include_modeObject



11
12
13
# File 'lib/marso/launcher.rb', line 11

def include_mode
  self[:include_mode].nil? ? :none : self[:include_mode]
end

#rootpathObject



15
16
17
# File 'lib/marso/launcher.rb', line 15

def rootpath
  (self[:rootpath].nil? || self[:rootpath].empty?) ? Dir.pwd : self[:rootpath]
end