class LightImogee::Data

Public Class Methods

add_imogee(map) click to toggle source
# File lib/light_imogee.rb, line 50
def self.add_imogee(map)
  @@imogee_map.merge!(map)
end
get_imogee() click to toggle source
# File lib/light_imogee.rb, line 34
def self.get_imogee
  @@imogee
end
get_imogee_for(name) click to toggle source
# File lib/light_imogee.rb, line 42
def self.get_imogee_for(name)
  if @@imogee_type == 'browser'
    get_imogee[name]
  else
    %{<img class="light-imogee-image" src="#{get_imogee[name]}"/>}
  end
end
get_imogee_for_symbol(symbol) click to toggle source
# File lib/light_imogee.rb, line 38
def self.get_imogee_for_symbol(symbol)
  get_imogee_for(get_imogee_map[symbol])
end
get_imogee_map() click to toggle source
# File lib/light_imogee.rb, line 25
def self.get_imogee_map
  @@imogee_map
end
set_imogee_type(type) click to toggle source
# File lib/light_imogee.rb, line 29
def self.set_imogee_type(type)
  @@imogee_type = type
  @@imogee = eval(File.open(File.join(File.dirname(__dir__), "lib/#{@@imogee_type}.rb")).read).to_h
end