Class: FLV::Edit::Options

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Options

Returns a new instance of Options.



8
9
10
# File 'lib/flvedit/options.rb', line 8

def initialize(argv)
  @commands, @options = parse(argv)
end

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



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

def commands
  @commands
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#to_aObject



12
13
14
# File 'lib/flvedit/options.rb', line 12

def to_a
  [@commands, @options]
end