Class: Ronin::CLI::StringProcessorCommand::StringValue Private

Inherits:
Object
  • Object
show all
Defined in:
lib/ronin/cli/string_processor_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.

A value object that represents a literal String input value.

Since:

  • 2.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ StringValue

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.

Initializes the string value.

Parameters:

  • string (String)

    The string value.

Since:

  • 2.0.0



45
46
47
# File 'lib/ronin/cli/string_processor_command.rb', line 45

def initialize(string)
  @string = string
end

Instance Attribute Details

#stringString (readonly)

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.

The literal string value.

Returns:

  • (String)

Since:

  • 2.0.0



37
38
39
# File 'lib/ronin/cli/string_processor_command.rb', line 37

def string
  @string
end