Class: MachO::LoadCommands::BuildVersionCommand::ToolEntries::Tool

Inherits:
Object
  • Object
show all
Defined in:
lib/macho/load_commands.rb

Overview

An individual tool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tool, version) ⇒ Tool

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.

Returns a new instance of Tool.



1452
1453
1454
1455
# File 'lib/macho/load_commands.rb', line 1452

def initialize(tool, version)
  @tool = tool
  @version = version
end

Instance Attribute Details

#toolInteger (readonly)



1444
1445
1446
# File 'lib/macho/load_commands.rb', line 1444

def tool
  @tool
end

#versionInteger (readonly)



1447
1448
1449
# File 'lib/macho/load_commands.rb', line 1447

def version
  @version
end

Instance Method Details

#to_hHash



1458
1459
1460
1461
1462
1463
# File 'lib/macho/load_commands.rb', line 1458

def to_h
  {
    "tool" => tool,
    "version" => version,
  }
end