Class: CheckInput
- Inherits:
-
Object
- Object
- CheckInput
- Defined in:
- lib/asker/check_input.rb
Instance Attribute Summary collapse
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
- #check(filepath) ⇒ Object
-
#initialize ⇒ CheckInput
constructor
A new instance of CheckInput.
Constructor Details
#initialize ⇒ CheckInput
Returns a new instance of CheckInput.
7 8 9 |
# File 'lib/asker/check_input.rb', line 7 def initialize @verbose = true end |
Instance Attribute Details
#verbose ⇒ Object
Returns the value of attribute verbose.
5 6 7 |
# File 'lib/asker/check_input.rb', line 5 def verbose @verbose end |
Instance Method Details
#check(filepath) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/asker/check_input.rb', line 11 def check(filepath) # Check HAML file syntax exist = check_file_exist(filepath) return false unless exist check_file_content(filepath) end |