Sha256: 3cef0525cbf799aa5f7bdd8b0004fc7d850c5b3e5c70c1c84841be9227bdffcb

Contents?: true

Size: 556 Bytes

Versions: 9

Compression:

Stored size: 556 Bytes

Contents

module UltraCommandLine
  module Manager

    module CmdLineArgs

      def cmd_line_args
        @cmd_line_args ||= []
      end

      def cmd_line_args=(cmd_line_args)
        cmd_line_args = case cmd_line_args
                          when Array
                            cmd_line_args
                          when String
                            cmd_line_args.split ' '
                        end
        UltraCommandLine.logger.debug "Cmd line: #{cmd_line_args.inspect}"
        @cmd_line_args = cmd_line_args
      end

    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ultra_command_line-0.4.16 lib/ultra_command_line/manager/cmd_line_args.rb
ultra_command_line-0.4.15 lib/ultra_command_line/manager/cmd_line_args.rb
ultra_command_line-0.4.14 lib/ultra_command_line/manager/cmd_line_args.rb
ultra_command_line-0.4.13 lib/ultra_command_line/manager/cmd_line_args.rb
ultra_command_line-0.4.12 lib/ultra_command_line/manager/cmd_line_args.rb
ultra_command_line-0.4.10 lib/ultra_command_line/manager/cmd_line_args.rb
ultra_command_line-0.4.9 lib/ultra_command_line/manager/cmd_line_args.rb
ultra_command_line-0.4.8 lib/ultra_command_line/manager/cmd_line_args.rb
ultra_command_line-0.4.7 lib/ultra_command_line/manager/cmd_line_args.rb