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.
555 556 557 558 |
# File 'lib/ayadn/set.rb', line 555 def initialize super @category = 'timeline' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, options) ⇒ Object
564 565 566 567 568 569 570 571 572 573 |
# File 'lib/ayadn/set.rb', line 564 def method_missing(meth, ) @input = meth.to_s @output = validate() case @input when 'directed', 'source', 'symbols', 'name', 'date', 'debug', 'compact' Settings.[:timeline][meth.to_sym] = @output else super end end |
Instance Method Details
#validate(value) ⇒ Object
560 561 562 |
# File 'lib/ayadn/set.rb', line 560 def validate(value) Validators.boolean(value) end |