Class: Ayadn::SetTimeline
Instance Attribute Summary
Attributes inherited from SetBase
Instance Method Summary collapse
-
#initialize ⇒ SetTimeline
constructor
A new instance of SetTimeline.
- #method_missing(meth, options) ⇒ Object
- #validate(value) ⇒ Object
Methods inherited from SetBase
Constructor Details
#initialize ⇒ SetTimeline
Returns a new instance of SetTimeline.
421 422 423 424 |
# File 'lib/ayadn/set.rb', line 421 def initialize super @category = 'timeline' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, options) ⇒ Object
430 431 432 433 434 435 436 437 438 439 440 441 |
# File 'lib/ayadn/set.rb', line 430 def method_missing(meth, ) @input = meth.to_s @output = validate() case @input when 'directed', 'html', 'show_source', 'show_symbols', 'show_real_name', 'show_date', 'show_spinner', 'show_debug' Settings.[:timeline][meth.to_sym] = @output when 'deleted', 'annotations' abort(Status.not_mutable) else super end end |
Instance Method Details
#validate(value) ⇒ Object
426 427 428 |
# File 'lib/ayadn/set.rb', line 426 def validate(value) Validators.boolean(value) end |