Module: Junoser::Display

Defined in:
lib/junoser/display.rb,
lib/junoser/display/set.rb,
lib/junoser/display/structure.rb,
lib/junoser/display/enumerable.rb,
lib/junoser/display/config_store.rb

Defined Under Namespace

Modules: Enumerable Classes: ConfigStore, Set, Structure

Class Method Summary collapse

Class Method Details

.display_set?(str) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/junoser/display.rb', line 7

def display_set?(str)
  str =~ /\Aset|deactivate/
end

.structured?(str) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/junoser/display.rb', line 11

def structured?(str)
  !display_set?(str)
end