MacRuby DoJo (道場)

Boxed Class

Boxed class is used to retrieve a structure information that is defined in Cocoa. All structures allow to retrieve an information by Boxed Class.

Methods in Boxed Class

Boxed.type

Returns a structure type information.

  • type -> String
    • [RETURN]
      • Returns a structure type information.
1
2
3
>> framework 'Cocoa'
>> NSRect.type
=> "{CGRect={CGPoint=dd}{CGSize=dd}}"

Boxed.opaque?

Returns whether structure is opaque.

  • opaque? -> bool
    • [RETURN]
      • Returns a true if structure is opaque. Otherwise, returns a false.
1
2
3
4
5
6
>> framework 'Cocoa'
>> NSRect.opaque?
=> false
>> NSModalSession.opaque?
=> true
>>

Comments