# File lib/gli/option_parsing_result.rb, line 8 def convert_to_openstruct! @global_options = Options.new(@global_options) @command_options = Options.new(@command_options) self end
Allows us to splat this object into blocks and methods expecting parameters in this order
# File lib/gli/option_parsing_result.rb, line 15 def to_a [@global_options,@command,@command_options,@arguments] end