Class: ConfOptions::Array

Inherits:
Standard
  • Object
show all
Defined in:
lib/confoptions.rb

Instance Method Summary collapse

Methods inherited from Standard

#get, #initialize, #to_pair, #to_s

Constructor Details

This class inherits a constructor from ConfOptions::Standard

Instance Method Details

#validate!(context = ConfSources::Default.new) ⇒ Object


65
66
67
68
# File 'lib/confoptions.rb', line 65

def validate! context = ConfSources::Default.new
    default_validator
    self[:validator].call(self,context) if self[:validator].is_a? Proc
end