Class: Epic::Validator::Base
- Includes:
- Errors
- Defined in:
- lib/epic/validator/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path = nil) ⇒ Base
constructor
A new instance of Base.
Methods included from Errors
Methods inherited from Base
#base_path, #configuration, configuration, configure, #display_path, #tmp_path
Constructor Details
#initialize(path = nil) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/epic/validator/base.rb', line 8 def initialize(path=nil) @path = path @errors = [] end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
6 7 8 |
# File 'lib/epic/validator/base.rb', line 6 def errors @errors end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/epic/validator/base.rb', line 6 def path @path end |