Class: LOCat::Command
- Inherits:
-
Object
- Object
- LOCat::Command
- Defined in:
- lib/locat/command.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
List of configuration files.
-
#files ⇒ Object
Files to include in analysis.
-
#format ⇒ Object
The output format (json, yaml, highchart).
-
#output ⇒ Object
Output file.
-
#title ⇒ Object
List of configuration files.
Instance Method Summary collapse
-
#initialize(options) ⇒ Command
constructor
A new instance of Command.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ Command
Returns a new instance of Command.
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/locat/command.rb', line 45 def initialize() @files = nil @output = nil @format = 'highchart' @config = default_config_files @title = nil .each do |k,v| send("#{k}=", v) end end |
Instance Attribute Details
#config ⇒ Object
List of configuration files.
64 65 66 |
# File 'lib/locat/command.rb', line 64 def config @config end |
#files ⇒ Object
Files to include in analysis.
58 59 60 |
# File 'lib/locat/command.rb', line 58 def files @files end |
#format ⇒ Object
The output format (json, yaml, highchart).
61 62 63 |
# File 'lib/locat/command.rb', line 61 def format @format end |
#output ⇒ Object
Output file.
70 71 72 |
# File 'lib/locat/command.rb', line 70 def output @output end |
#title ⇒ Object
List of configuration files.
67 68 69 |
# File 'lib/locat/command.rb', line 67 def title @title end |
Instance Method Details
#run ⇒ Object
78 79 80 |
# File 'lib/locat/command.rb', line 78 def run save end |