Class: VagrantBindfs::Bindfs::Validators::Config
- Inherits:
-
Object
- Object
- VagrantBindfs::Bindfs::Validators::Config
- Extended by:
- Forwardable
- Defined in:
- lib/vagrant-bindfs/bindfs/validators/config.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#folder ⇒ Object
readonly
Returns the value of attribute folder.
Instance Method Summary collapse
-
#initialize(folder) ⇒ Config
constructor
A new instance of Config.
- #valid? ⇒ Boolean
Constructor Details
#initialize(folder) ⇒ Config
Returns a new instance of Config.
14 15 16 17 |
# File 'lib/vagrant-bindfs/bindfs/validators/config.rb', line 14 def initialize(folder) @folder = folder @errors = [] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/vagrant-bindfs/bindfs/validators/config.rb', line 7 def errors @errors end |
#folder ⇒ Object (readonly)
Returns the value of attribute folder.
6 7 8 |
# File 'lib/vagrant-bindfs/bindfs/validators/config.rb', line 6 def folder @folder end |
Instance Method Details
#valid? ⇒ Boolean
19 20 21 22 23 24 25 |
# File 'lib/vagrant-bindfs/bindfs/validators/config.rb', line 19 def valid? @errors = [] validate_source! validate_destination! @errors.empty? end |