Class: Ronin::CLI::StringMethodsCommand Private

Inherits:
StringProcessorCommand show all
Includes:
MethodOptions
Defined in:
lib/ronin/cli/string_methods_command.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Base class for all commands that process strings by calling one or more methods on them.

Since:

  • 2.0.0

Instance Attribute Summary

Attributes included from MethodOptions

#method_calls

Attributes inherited from StringProcessorCommand

#input_values

Instance Method Summary collapse

Methods included from MethodOptions

#apply_method_options, #initialize

Methods inherited from StringProcessorCommand

#initialize, #print_string, #process_input, #run

Methods inherited from FileProcessorCommand

#open_file, #process_file, #process_input, #run

Instance Method Details

#process_string(string) ⇒ String

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Processes the string.

Parameters:

  • string (String)

    The string to process.

Returns:

  • (String)

    The end result string.

Since:

  • 2.0.0



41
42
43
# File 'lib/ronin/cli/string_methods_command.rb', line 41

def process_string(string)
  apply_method_options(string)
end