Class: Ocran::RubyoptProcessor::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/ocran/rubyopt_processor.rb

Overview

rubyopt: the RUBYOPT string with all translated/removed entries stripped; safe to bake into the executable as-is. load_paths: packed locations (relative to the extraction root) for translated -I entries, in the order given. requires: packed locations (relative to the extraction root) for translated -r entries, in the order given. dropped: -I/-r entries with absolute paths that are not part of the package; they cannot work at runtime and were removed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#droppedObject

Returns the value of attribute dropped

Returns:

  • (Object)

    the current value of dropped



32
33
34
# File 'lib/ocran/rubyopt_processor.rb', line 32

def dropped
  @dropped
end

#load_pathsObject

Returns the value of attribute load_paths

Returns:

  • (Object)

    the current value of load_paths



32
33
34
# File 'lib/ocran/rubyopt_processor.rb', line 32

def load_paths
  @load_paths
end

#requiresObject

Returns the value of attribute requires

Returns:

  • (Object)

    the current value of requires



32
33
34
# File 'lib/ocran/rubyopt_processor.rb', line 32

def requires
  @requires
end

#rubyoptObject

Returns the value of attribute rubyopt

Returns:

  • (Object)

    the current value of rubyopt



32
33
34
# File 'lib/ocran/rubyopt_processor.rb', line 32

def rubyopt
  @rubyopt
end

Instance Method Details

#translated?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/ocran/rubyopt_processor.rb', line 33

def translated?
  !load_paths.empty? || !requires.empty?
end