Class: Mago::Cli::Config
- Inherits:
-
Object
- Object
- Mago::Cli::Config
- Defined in:
- lib/mago/cli/config.rb
Overview
Command config. Build by option parser and is used to execute command.
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#files ⇒ Object
ruby files to process.
-
#ignore ⇒ Object
numbers which must be ignored.
-
#source ⇒ Object
attribute source [Boolean] whether show lines of source code with magic number or not.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
18 19 20 21 22 23 |
# File 'lib/mago/cli/config.rb', line 18 def initialize @files = [] @color = false @source = false @ignore = nil end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
12 13 14 |
# File 'lib/mago/cli/config.rb', line 12 def color @color end |
#files ⇒ Object
ruby files to process
6 7 8 |
# File 'lib/mago/cli/config.rb', line 6 def files @files end |
#ignore ⇒ Object
numbers which must be ignored
9 10 11 |
# File 'lib/mago/cli/config.rb', line 9 def ignore @ignore end |
#source ⇒ Object
attribute source [Boolean] whether show lines of source
code with magic number or not
16 17 18 |
# File 'lib/mago/cli/config.rb', line 16 def source @source end |