Class: Udgenerator::AnyObject

Inherits:
NSObject show all
Defined in:
lib/udgenerator/type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject (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_nameObject



222
223
224
# File 'lib/udgenerator/type.rb', line 222

def swift_type_name
  @type
end

#type_nameObject



219
220
221
# File 'lib/udgenerator/type.rb', line 219

def type_name
  "#{@type} *"
end