Class: WordLookUp::Options
- Inherits:
-
Object
- Object
- WordLookUp::Options
- Defined in:
- lib/word_look_up/options.rb
Instance Attribute Summary collapse
-
#hide_failures ⇒ Object
readonly
Returns the value of attribute hide_failures.
-
#words_to_look_up ⇒ Object
readonly
Returns the value of attribute words_to_look_up.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(argv) ⇒ Options
Returns a new instance of Options.
7 8 9 10 |
# File 'lib/word_look_up/options.rb', line 7 def initialize(argv) parse(argv) @words_to_look_up = argv end |
Instance Attribute Details
#hide_failures ⇒ Object (readonly)
Returns the value of attribute hide_failures.
6 7 8 |
# File 'lib/word_look_up/options.rb', line 6 def hide_failures @hide_failures end |
#words_to_look_up ⇒ Object (readonly)
Returns the value of attribute words_to_look_up.
6 7 8 |
# File 'lib/word_look_up/options.rb', line 6 def words_to_look_up @words_to_look_up end |