Class: CheckInput

Inherits:
Object
  • Object
show all
Defined in:
lib/asker/check_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCheckInput

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

#verboseObject

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