class Rip::Package::Executable

Attributes

output[R]
root_module[R]

Public Class Methods

extract(executables) click to toggle source
# File source/rip/package/executable.rb, line 19
def self.extract(executables)
  project_root = executables.delete(:_package_root)

  executables.map do |root_module, output|
    new(
      project_root.join(root_module.to_s).expand_path,
      project_root.join(output.to_s).expand_path
    )
  end
end
new(root_module, output) click to toggle source
# File source/rip/package/executable.rb, line 6
def initialize(root_module, output)
  @root_module = root_module
  @output = output
end

Public Instance Methods

inspect() click to toggle source
# File source/rip/package/executable.rb, line 11
def inspect
  "#<#{self.class.name} #{to_s}>"
end
to_s() click to toggle source
# File source/rip/package/executable.rb, line 15
def to_s
  "#{root_module} => #{output}"
end