class RbSys::ToolchainInfo

def ==(other)

def ==(other)
  @gem_platform == other.gem_platform
end

def all

def all
  @all ||= DATA.keys.map { |k| new(k) }
end

def initialize(platform)

def initialize(platform)
  @platform = platform
  @gem_platform = Gem::Platform.new(platform)
  data = DATA[platform] || DATA["#{gem_platform.cpu}-#{gem_platform.os}"] || raise(ArgumentError, "unknown ruby platform: #{platform.inspect}")
  @rust_target = data["rust-target"]
  @rake_compiler_dock_cc = data["rake-compiler-dock"]["cc"]
  @supported = data["supported"]
  @rake_compiler_dock_image = "rbsys/#{platform}:#{RbSys::VERSION}"
end

def local

def local
  @current ||= new(RbConfig::CONFIG["arch"])
end

def supported?

def supported?
  @supported
end

def to_s

def to_s
  "#{gem_platform.cpu}-#{gem_platform.os}"
end