Class: ColorScheme
- Inherits:
-
Object
- Object
- ColorScheme
- Defined in:
- lib/schoolkeep/fixture/stubs.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ ColorScheme
constructor
A new instance of ColorScheme.
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 |