class TypeInt
Attributes
varname[RW]
Public Instance Methods
conversion_value(origin)
click to toggle source
# File lib/ObjCGenerator/types.rb, line 70 def conversion_value origin "[#{origin} integerValue]" end
copyrow(newVarName)
click to toggle source
# File lib/ObjCGenerator/types.rb, line 82 def copyrow newVarName "#{newVarName}.#{self.varname} = self.#{self.varname};" end
default_value()
click to toggle source
# File lib/ObjCGenerator/types.rb, line 67 def default_value "0" end
description_row()
click to toggle source
# File lib/ObjCGenerator/types.rb, line 79 def description_row "@\"self.#{self.varname} = %zd\" , self.#{self.varname}" end
hash_row()
click to toggle source
# File lib/ObjCGenerator/types.rb, line 85 def hash_row "self.#{self.varname};" end
inEquality_test(other)
click to toggle source
# File lib/ObjCGenerator/types.rb, line 76 def inEquality_test other "self.#{self.varname} != #{other}.#{self.varname}" end
property_definition()
click to toggle source
# File lib/ObjCGenerator/types.rb, line 64 def property_definition "@property (nonatomic) NSInteger #{@varname};" end
to_dictionary_item()
click to toggle source
# File lib/ObjCGenerator/types.rb, line 73 def to_dictionary_item "@\"#{@varname}\" : @(self.#{@varname}) ?: @(0)" end