Class: Symbol

Inherits:
Object show all
Defined in:
lib/marso/validation/symbol.rb,
lib/marso/helpers/statushelper.rb

Instance Method Summary collapse

Instance Method Details

#<(s) ⇒ Object



12
13
14
# File 'lib/marso/helpers/statushelper.rb', line 12

def < s
  !(self>s)
end

#<=(s) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/marso/helpers/statushelper.rb', line 16

def <= s
  if self == s
    return true
  else
    return self<s
  end
end

#>(s) ⇒ Object



4
5
6
# File 'lib/marso/helpers/statushelper.rb', line 4

def > s
  return bigger(s)
end

#>=(s) ⇒ Object



8
9
10
# File 'lib/marso/helpers/statushelper.rb', line 8

def >= s
  return bigger(s, true)
end

#ensure_valid_sync_modeObject

Raises:

  • (ArgumentError)


18
19
20
# File 'lib/marso/validation/symbol.rb', line 18

def ensure_valid_sync_mode
  raise ArgumentError, "':#{self}' is an invalid sync_mode value. Valid values are either :sync or :async" unless (self == :sync || self == :async)
end

#to_load_modeObject



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/marso/helpers/statushelper.rb', line 24

def to_load_mode
  case self
  when :none
    return :none
  when :with_stories
    return :stories
  when :with_stories_scenarios
    return :stories_with_scenarios
  when :with_scenarios
    return :scenario_contexts
  when :with_all
    return :all
  else
    return self
  end
end