Class: MotionPlot::Theme

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-plot/theme/theme.rb

Constant Summary collapse

DEFAULTS =
{
  :dark_gradient  => KCPTDarkGradientTheme,
  :plain_black    => KCPTPlainBlackTheme,
  :plain_white    => KCPTPlainWhiteTheme,
  :slate          => KCPTSlateTheme,
  :stocks         => KCPTStocksTheme
}

Class Method Summary collapse

Class Method Details

.method_missing(m, *args, &block) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/motion-plot/theme/theme.rb', line 12

def method_missing(m, *args, &block)
  method_name = m == :default ? :plain_white : m

  raise unless(DEFAULTS.keys.include?(method_name))       

  CPTTheme.themeNamed(DEFAULTS[method_name])
end