Class: Epic::Validator::Base

Inherits:
Base
  • Object
show all
Includes:
Errors
Defined in:
lib/epic/validator/base.rb

Direct Known Subclasses

HTML, JavaScript, Stylesheet

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Errors

#display_errors, #valid?

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

#errorsObject

Returns the value of attribute errors.



6
7
8
# File 'lib/epic/validator/base.rb', line 6

def errors
  @errors
end

#pathObject

Returns the value of attribute path.



6
7
8
# File 'lib/epic/validator/base.rb', line 6

def path
  @path
end