Class: Stowaway::Options

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

Constant Summary collapse

DEFAULT_FILE_TYPES =
%w{.jpg .gif .png .ico .js .css}

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typesObject (readonly)

Returns the value of attribute file_types.



7
8
9
# File 'lib/stowaway/options.rb', line 7

def file_types
  @file_types
end

#pathObject (readonly)

Returns the value of attribute path.



7
8
9
# File 'lib/stowaway/options.rb', line 7

def path
  @path
end