Class: Udgenerator::NSBOOL

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

Instance Method Summary collapse

Methods inherited from NSValue

#defaultValue, #objectExchange

Methods inherited from Type

#defaultValue, #initialize, #objectExchange, #property

Constructor Details

This class inherits a constructor from Udgenerator::Type

Instance Method Details

#==(type) ⇒ Object



270
271
272
# File 'lib/udgenerator/type.rb', line 270

def == (type)
	NSBOOL === type && super(type)
end

#imp_get_messageObject



279
280
281
# File 'lib/udgenerator/type.rb', line 279

def imp_get_message
	"boolForKey"
end

#imp_set_messageObject



282
283
284
# File 'lib/udgenerator/type.rb', line 282

def imp_set_message
	"setBool"
end

#swift_default_valueObject



288
289
290
# File 'lib/udgenerator/type.rb', line 288

def swift_default_value
	"false"
end

#swift_type_nameObject



276
277
278
# File 'lib/udgenerator/type.rb', line 276

def swift_type_name
	"Bool"
end

#type_nameObject



273
274
275
# File 'lib/udgenerator/type.rb', line 273

def type_name
	"BOOL"
end

#typeExchange(obj) ⇒ Object



285
286
287
# File 'lib/udgenerator/type.rb', line 285

def typeExchange(obj)
	"[#{obj} boolValue]"
end