Class: CheckInput
- Inherits:
-
Object
- Object
- CheckInput
- Defined in:
- lib/asker/check_input.rb
Instance Method Summary collapse
- #check ⇒ Object
- #file(filepath) ⇒ Object
-
#initialize(verbose = true) ⇒ CheckInput
constructor
A new instance of CheckInput.
- #verbose(verbose) ⇒ Object
Constructor Details
#initialize(verbose = true) ⇒ CheckInput
Returns a new instance of CheckInput.
7 8 9 |
# File 'lib/asker/check_input.rb', line 7 def initialize(verbose = true) @verbose = verbose end |
Instance Method Details
#check ⇒ Object
21 22 23 24 25 26 |
# File 'lib/asker/check_input.rb', line 21 def check # Check HAML file syntax exist = check_file_exist return false unless exist check_file_content end |
#file(filepath) ⇒ Object
11 12 13 14 |
# File 'lib/asker/check_input.rb', line 11 def file(filepath) @filepath = filepath self end |
#verbose(verbose) ⇒ Object
16 17 18 19 |
# File 'lib/asker/check_input.rb', line 16 def verbose(verbose) @verbose = verbose self end |