lib/ronin/ui/console.rb in ronin-1.0.0 vs lib/ronin/ui/console.rb in ronin-1.1.0.rc1

- old
+ new

@@ -42,10 +42,12 @@ # @return [Boolean] # Specifies whether colorized output will be enabled. # # @since 1.0.0 # + # @api semipublic + # def Console.color? @@color end # @@ -57,10 +59,12 @@ # @return [Boolean] # The colorized output mode. # # @since 1.0.0 # + # @api semipublic + # def Console.color=(mode) @@color = mode end # @@ -70,10 +74,12 @@ # @return [Boolean] # The Console short-errors setting. # # @since 1.0.0 # + # @api semipublic + # def Console.short_errors? @@short_errors end # @@ -85,20 +91,24 @@ # @return [Boolean] # The Console short-errors setting. # # @since 1.0.0 # + # @api semipublic + # def Console.short_errors=(mode) @@short_errors = mode end # # The list of files to load before starting the Console. # # @return [Array] # The files to require when the Console starts. # + # @api semipublic + # def Console.auto_load @@auto_load end # @@ -106,10 +116,12 @@ # started. # # @yield [] # The block to be ran from within the Console. # + # @api semipublic + # def Console.setup(&block) @@setup_blocks << block if block end # @@ -136,24 +148,24 @@ # @example # Console.start { @var = 'hello' } # # >> @var # # # => "hello" # + # @api semipublic + # def Console.start(variables={},&block) require 'ripl' require 'ripl/completion' require 'ripl/multi_line' require 'ripl/auto_indent' require 'ripl/color_result' if @@color require 'ripl/short_errors' if @@short_errors require 'ronin' + require 'ronin/repositories' require 'pp' - # activates all installed or added repositories - Repository.activate! - # append the current directory to $LOAD_PATH for Ruby 1.9. $LOAD_PATH << '.' unless $LOAD_PATH.include?('.') # require any of the auto-load paths @@auto_load.each { |path| require path } @@ -191,9 +203,11 @@ # # @return [String] # The inspected console. # # @since 1.0.0 + # + # @api semipublic # def inspect "#<Ronin::UI::Console>" end end