Class: Eye::Checker::Custom

Inherits:
Defer show all
Defined in:
lib/eye/checker.rb

Constant Summary

Constants inherited from Eye::Checker

TYPES

Instance Attribute Summary

Attributes inherited from Eye::Checker

#check_count, #options, #pid, #type, #value, #values

Attributes included from Dsl::Validation

#defaults, #should_bes, #validates, #variants

Attributes included from Logger::Helpers

#logger

Class Method Summary collapse

Methods inherited from Defer

#get_value_safe

Methods inherited from Eye::Checker

#check, #check_name, create, get_class, #get_value, #get_value_safe, #good?, #human_value, #initialize, #last_human_values, #max_tries, #min_tries, #previous_value, validate!

Methods included from Dsl::Validation

#inherited, #param, #validate

Constructor Details

This class inherits a constructor from Eye::Checker

Class Method Details

.inherited(base) ⇒ Object



130
131
132
133
134
135
136
# File 'lib/eye/checker.rb', line 130

def self.inherited(base)
  super
  name = base.to_s
  type = name.underscore.to_sym
  Eye::Checker::TYPES[type] = name
  Eye::Checker.const_set(name, base)
end