Class: Ayadn::SetMarker
Instance Attribute Summary
Attributes inherited from SetBase
#category, #input, #output
Instance Method Summary
collapse
Methods inherited from SetBase
#log, #save
Constructor Details
459
460
461
462
|
# File 'lib/ayadn/set.rb', line 459
def initialize
super
@category = 'marker'
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, options) ⇒ Object
468
469
470
471
472
473
474
475
476
477
|
# File 'lib/ayadn/set.rb', line 468
def method_missing(meth, options)
@input = meth.to_s
@output = validate(options)
case @input
when 'messages'
Settings.options[:marker][meth.to_sym] = @output
else
super
end
end
|
Instance Method Details
#validate(value) ⇒ Object
464
465
466
|
# File 'lib/ayadn/set.rb', line 464
def validate(value)
Validators.boolean(value)
end
|