Class: Mago::Cli::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/mago/cli/config.rb

Overview

Command config. Build by option parser and is used to execute command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#colorObject

Returns the value of attribute color.



12
13
14
# File 'lib/mago/cli/config.rb', line 12

def color
  @color
end

#filesObject

ruby files to process



6
7
8
# File 'lib/mago/cli/config.rb', line 6

def files
  @files
end

#ignoreObject

numbers which must be ignored



9
10
11
# File 'lib/mago/cli/config.rb', line 9

def ignore
  @ignore
end

#sourceObject

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