Class: Udgenerator::AnyObject
- Defined in:
- lib/udgenerator/type.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #==(type) ⇒ Object
-
#initialize(type) ⇒ AnyObject
constructor
A new instance of AnyObject.
- #swift_type_name ⇒ Object
- #type_name ⇒ Object
Methods inherited from NSObject
#imp_get_message, #imp_set_message
Methods inherited from Type
#defaultValue, #imp_set_message, #objectExchange, #property, #swift_default_value, #typeExchange
Constructor Details
#initialize(type) ⇒ AnyObject
Returns a new instance of AnyObject.
213 214 215 |
# File 'lib/udgenerator/type.rb', line 213 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
212 213 214 |
# File 'lib/udgenerator/type.rb', line 212 def type @type end |
Instance Method Details
#==(type) ⇒ Object
216 217 218 |
# File 'lib/udgenerator/type.rb', line 216 def == (type) AnyObject === type && @type === type.type && super(type) end |
#swift_type_name ⇒ Object
222 223 224 |
# File 'lib/udgenerator/type.rb', line 222 def swift_type_name @type end |
#type_name ⇒ Object
219 220 221 |
# File 'lib/udgenerator/type.rb', line 219 def type_name "#{@type} *" end |