Class: ColorScheme

Inherits:
Object
  • Object
show all
Defined in:
lib/schoolkeep/fixture/stubs.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ColorScheme

Returns a new instance of ColorScheme.



89
90
91
92
93
94
95
96
97
# File 'lib/schoolkeep/fixture/stubs.rb', line 89

def initialize(*args)
  super
  to_h.each do |method_name, _|
    define_singleton_method "#{method_name}?" do
      val = send(method_name)
      val != "" && !val.nil?
    end
  end
end