Class: ObjC::Variable

ObjC::Variable wraps Objective-C instance variables for manipulation from Ruby.

The methods of this class allow the names, type encodings, and other properties of Objective-C instance variables to be accessed from Ruby. ObjC::Variable objects are returned by the ivars methods of ObjC::Class and ObjC::Object.


Public Instance methods

<=> (p1)

Compare the variable with another variable p1.

== (p1)

Test variable for equality with another variable p1.

eql? (p1)

Test variable for equality with another variable p1.

hash ()

Get a hash value for a variable.

name ()

Get the name of the corresponding Objective-C instance variable.

offset ()

Get the offset of the corresponding Objective-C instance variable.

to_s ()

Get the name of the corresponding Objective-C instance variable.

type_encoding ()

Get the type encoding of the corresponding Objective-C instance variable.