Class: Ronin::CLI::StringProcessorCommand::FileValue 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 file to process.

Since:

  • 2.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ FileValue

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 file value.

Parameters:

  • file (String)

    The path to the file.

Since:

  • 2.0.0



67
68
69
# File 'lib/ronin/cli/string_processor_command.rb', line 67

def initialize(file)
  @file = file
end

Instance Attribute Details

#fileString (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 file's path.

Returns:

  • (String)

Since:

  • 2.0.0



59
60
61
# File 'lib/ronin/cli/string_processor_command.rb', line 59

def file
  @file
end