class Ayadn::SetTimeline
Public Class Methods
new()
click to toggle source
Calls superclass method
Ayadn::SetBase::new
# File lib/ayadn/set.rb, line 608 def initialize super @category = 'timeline' end
Public Instance Methods
method_missing(meth, options)
click to toggle source
# File lib/ayadn/set.rb, line 617 def method_missing(meth, options) @input = meth.to_s @output = validate(options) case @input when 'directed' Settings.options.timeline.directed = @output when 'source' Settings.options.timeline.source = @output when 'symbols' Settings.options.timeline.symbols = @output when 'name' Settings.options.timeline.name = @output when 'date' Settings.options.timeline.date = @output when 'debug' Settings.options.timeline.debug = @output when 'compact' Settings.options.timeline.compact = @output end end
validate(value)
click to toggle source
# File lib/ayadn/set.rb, line 613 def validate(value) Validators.boolean(value) end