Class: Ryac::Pipeline::RenameResult

Inherits:
Data
  • Object
show all
Defined in:
lib/ryac/pipeline/data_types.rb,
sig/ryac/pipeline/data_types.rbs

Overview

Internal return type of the rename stages: the parts of the program, not yet assembled. code deliberately carries no requires and no preamble — the Minifier joins the parts into MinifiedResult#content, which is why the field is not called content.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, aliases: '', preamble: '') ⇒ RenameResult

steep:ignore UndeclaredMethodDefinition

Parameters:

  • code: (String)
  • aliases: (String) (defaults to: '')
  • preamble: (String) (defaults to: '')


157
158
159
# File 'lib/ryac/pipeline/data_types.rb', line 157

def initialize(code:, aliases: '', preamble: '') # steep:ignore UndeclaredMethodDefinition
  super
end

Instance Attribute Details

#aliases ⇒ Object (readonly)

Returns the value of attribute aliases

Returns:

  • (Object) —

    the current value of aliases



152
153
154
# File 'lib/ryac/pipeline/data_types.rb', line 152

def aliases
  @aliases
end

#code ⇒ Object (readonly)

Returns the value of attribute code

Returns:

  • (Object) —

    the current value of code



152
153
154
# File 'lib/ryac/pipeline/data_types.rb', line 152

def code
  @code
end

#preamble ⇒ Object (readonly)

Returns the value of attribute preamble

Returns:

  • (Object) —

    the current value of preamble



152
153
154
# File 'lib/ryac/pipeline/data_types.rb', line 152

def preamble
  @preamble
end

Class Method Details

.new ⇒ RenameResult

Parameters:

  • code: (String)
  • aliases: (String)
  • preamble: (String)

Returns:



139
# File 'sig/ryac/pipeline/data_types.rbs', line 139

def self.new: (code: String, ?aliases: String, ?preamble: String) -> RenameResult