Class: Stowaway::Options
- Inherits:
-
Object
- Object
- Stowaway::Options
- Defined in:
- lib/stowaway/options.rb
Constant Summary collapse
- DEFAULT_FILE_TYPES =
%w{.jpg .gif .png .ico .js .css}
Instance Attribute Summary collapse
-
#file_types ⇒ Object
readonly
Returns the value of attribute file_types.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(argv) ⇒ Options
Returns a new instance of Options.
9 10 11 12 13 |
# File 'lib/stowaway/options.rb', line 9 def initialize(argv) @file_types = DEFAULT_FILE_TYPES @argv = argv parse end |
Instance Attribute Details
#file_types ⇒ Object (readonly)
Returns the value of attribute file_types.
7 8 9 |
# File 'lib/stowaway/options.rb', line 7 def file_types @file_types end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/stowaway/options.rb', line 7 def path @path end |