Class: Glyptodont::Options

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

Overview

Command-line options for the tool

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Options



12
13
14
15
16
# File 'lib/glyptodont/options.rb', line 12

def initialize(args)
  @args = args
  @directory = "."
  parse
end

Instance Attribute Details

#directoryObject (readonly)

Returns the value of attribute directory.



10
11
12
# File 'lib/glyptodont/options.rb', line 10

def directory
  @directory
end

#keywordsObject (readonly)

Returns the value of attribute keywords.



10
11
12
# File 'lib/glyptodont/options.rb', line 10

def keywords
  @keywords
end

#max_age_in_daysObject (readonly)

Returns the value of attribute max_age_in_days.



10
11
12
# File 'lib/glyptodont/options.rb', line 10

def max_age_in_days
  @max_age_in_days
end

#thresholdObject (readonly)

Returns the value of attribute threshold.



10
11
12
# File 'lib/glyptodont/options.rb', line 10

def threshold
  @threshold
end