Module: Checky
- Defined in:
- lib/checky.rb,
lib/checky/checker.rb,
lib/checky/version.rb,
lib/checky/exceptions.rb,
lib/checky/validators/all.rb,
lib/checky/validators/binary.rb,
lib/checky/validators/verbose.rb,
lib/checky/validators/version.rb,
lib/checky/validators/fail_hard.rb
Defined Under Namespace
Modules: Validators Classes: Checker, Exception, ValidationError
Constant Summary collapse
- VERSION =
'0.1.3'
Class Method Summary collapse
- .check(&block) ⇒ Object
-
.pastel ⇒ Object
Returns the value of attribute pastel.
-
.pastel=(value) ⇒ Object
Sets the attribute pastel.
-
.run(command) ⇒ Object
:nocov:.
Class Method Details
.check(&block) ⇒ Object
23 24 25 |
# File 'lib/checky.rb', line 23 def check(&block) Checker.new.check(&block) end |
.pastel ⇒ Object
Returns the value of attribute pastel.
21 22 23 |
# File 'lib/checky.rb', line 21 def pastel @pastel end |
.pastel=(value) ⇒ Object
Sets the attribute pastel
21 22 23 |
# File 'lib/checky.rb', line 21 def pastel=(value) @pastel = value end |
.run(command) ⇒ Object
:nocov:
28 29 30 |
# File 'lib/checky.rb', line 28 def run(command) `#{command}` end |