Class: Ayadn::SetMarker
Instance Attribute Summary
Attributes inherited from SetBase
Instance Method Summary collapse
-
#initialize ⇒ SetMarker
constructor
A new instance of SetMarker.
- #method_missing(meth, options) ⇒ Object
- #validate(value) ⇒ Object
Methods inherited from SetBase
Constructor Details
#initialize ⇒ SetMarker
Returns a new instance of SetMarker.
482 483 484 485 |
# File 'lib/ayadn/set.rb', line 482 def initialize super @category = 'marker' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, options) ⇒ Object
491 492 493 494 495 496 497 498 499 500 |
# File 'lib/ayadn/set.rb', line 491 def method_missing(meth, ) @input = meth.to_s @output = validate() case @input when 'messages' Settings..marker. = @output else super end end |
Instance Method Details
#validate(value) ⇒ Object
487 488 489 |
# File 'lib/ayadn/set.rb', line 487 def validate(value) Validators.boolean(value) end |