Class: Glyptodont::Options
- Inherits:
-
Object
- Object
- Glyptodont::Options
- Defined in:
- lib/glyptodont/options.rb
Overview
Command-line options for the tool
Instance Attribute Summary collapse
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
-
#keywords ⇒ Object
readonly
Returns the value of attribute keywords.
-
#max_age_in_days ⇒ Object
readonly
Returns the value of attribute max_age_in_days.
-
#threshold ⇒ Object
readonly
Returns the value of attribute threshold.
Instance Method Summary collapse
-
#initialize(args) ⇒ Options
constructor
A new instance of Options.
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
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
10 11 12 |
# File 'lib/glyptodont/options.rb', line 10 def directory @directory end |
#keywords ⇒ Object (readonly)
Returns the value of attribute keywords.
10 11 12 |
# File 'lib/glyptodont/options.rb', line 10 def keywords @keywords end |
#max_age_in_days ⇒ Object (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 |
#threshold ⇒ Object (readonly)
Returns the value of attribute threshold.
10 11 12 |
# File 'lib/glyptodont/options.rb', line 10 def threshold @threshold end |