Class: FLV::Edit::Options
- Inherits:
-
Object
- Object
- FLV::Edit::Options
- Defined in:
- lib/flvedit/options.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Options
constructor
A new instance of Options.
- #to_a ⇒ Object
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
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
7 8 9 |
# File 'lib/flvedit/options.rb', line 7 def commands @commands end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/flvedit/options.rb', line 7 def @options end |
Instance Method Details
#to_a ⇒ Object
12 13 14 |
# File 'lib/flvedit/options.rb', line 12 def to_a [@commands, @options] end |