class ChemistryParadise::Base

Constants

NAMESPACE
#

NAMESPACE

#

Public Instance Methods

do_use_the_english_language() click to toggle source
#

do_use_the_english_language

#
# File lib/chemistry_paradise/base/base.rb, line 59
def do_use_the_english_language
  ::ChemistryParadise.do_use_english
end
do_use_the_german_language() click to toggle source
#

do_use_the_german_language

#
# File lib/chemistry_paradise/base/base.rb, line 52
def do_use_the_german_language
  ::ChemistryParadise.do_use_german
end
do_we_use_english?() click to toggle source
#

do_we_use_english?

Query method to determine whether we will use english or whether we will use another language, for a project-wide setting.

#
# File lib/chemistry_paradise/base/base.rb, line 69
def do_we_use_english?
  (use_which_language? == :english)
end
grey(i) click to toggle source
#

grey

#
# File lib/chemistry_paradise/base/colours.rb, line 26
def grey(i)
  "#{Colours::GREY}#{i}#{Colours}#{rev}"
end
opnn(i) click to toggle source
#

opnn

#
# File lib/chemistry_paradise/base/base.rb, line 35
def opnn(i)
  if i.is_a? String
    i = { namespace: i }
  end
  Opn.opn(i) # Delegate to module Opn here.
end
reset() click to toggle source
#

reset

#
# File lib/chemistry_paradise/base/base.rb, line 29
def reset
end
rev() click to toggle source
#

rev

#
# File lib/chemistry_paradise/base/colours.rb, line 19
def rev
  ::Colours.rev
end
royalblue(i) click to toggle source
#

royalblue

#
# File lib/chemistry_paradise/base/colours.rb, line 33
def royalblue(i)
  ::Colours.royalblue(i)
end
sfancy(i) click to toggle source
#

sfancy

#
# File lib/chemistry_paradise/base/colours.rb, line 61
def sfancy(i)
  ::Colours.sfancy(i)
end
steelblue(i) click to toggle source
#

steelblue

#
# File lib/chemistry_paradise/base/colours.rb, line 40
def steelblue(i)
  ::Colours.steelblue(i)
end
teal(i) click to toggle source
#

teal

#
# File lib/chemistry_paradise/base/colours.rb, line 54
def teal(i)
  Colours.teal(i)
end
use_which_language?() click to toggle source
#

use_which_language?

#
# File lib/chemistry_paradise/base/base.rb, line 45
def use_which_language?
  ::ChemistryParadise.use_which_language?
end
yellow(i) click to toggle source
#

yellow

#
# File lib/chemistry_paradise/base/colours.rb, line 47
def yellow(i)
  ::Colours.yellow(i)
end