class TypeBool

Attributes

varname[RW]

Public Instance Methods

conversion_value(origin) click to toggle source
# File lib/ObjCGenerator/types.rb, line 41
def conversion_value origin
  "[#{origin} boolValue]"
end
copyrow(newVarName) click to toggle source
# File lib/ObjCGenerator/types.rb, line 53
def copyrow newVarName
  "#{newVarName}.#{self.varname}  = self.#{self.varname};"
end
default_value() click to toggle source
# File lib/ObjCGenerator/types.rb, line 37
def default_value
  "NO"
end
description_row() click to toggle source
# File lib/ObjCGenerator/types.rb, line 50
def description_row
  "@\"self.#{self.varname} = %@\" , self.#{self.varname} ? @\"YES\" : @\"NO\""
end
hash_row() click to toggle source
# File lib/ObjCGenerator/types.rb, line 56
def hash_row
  "(self.#{self.varname}?1231:1237);"
end
inEquality_test(other) click to toggle source
# File lib/ObjCGenerator/types.rb, line 47
def inEquality_test other
  "self.#{self.varname}  != #{other}.#{self.varname}"
end
property_definition() click to toggle source
# File lib/ObjCGenerator/types.rb, line 34
def property_definition
  "@property (nonatomic) BOOL #{@varname};"
end
to_dictionary_item() click to toggle source
# File lib/ObjCGenerator/types.rb, line 44
def to_dictionary_item
  "@\"#{@varname}\" : @(self.#{@varname})  ?: @(YES)"
end