Class: Asker

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

Overview

Asker main class

Class Method Summary collapse

Class Method Details

.check(filepath) ⇒ Object

Checking input file syntax

Parameters:

  • filepath (String)


33
34
35
# File 'lib/asker.rb', line 33

def self.check(filepath)
  Checker.check(filepath)
end

.create_configurationObject

Create asker configuration files



26
27
28
# File 'lib/asker.rb', line 26

def self.create_configuration
  Skeleton.create_configuration
end

.create_input(dirpath) ⇒ Object

Create asker input demo files

Parameters:

  • dirpath (String)


20
21
22
# File 'lib/asker.rb', line 20

def self.create_input(dirpath)
  Skeleton.create_input(dirpath)
end

.start(filepath) ⇒ Object

Start working

Parameters:

  • filepath (String)

    HAML or XML filepath



40
41
42
43
44
# File 'lib/asker.rb', line 40

def self.start(filepath)
  project, data = load_input(filepath)
  ConceptDisplayer.show(data[:concepts])
  create_output(project, data)
end