class TypeString

Attributes

varname[RW]

Public Instance Methods

conversion_value(origin) click to toggle source
# File lib/ObjCGenerator/types.rb, line 126
def conversion_value origin
  "[#{origin} description]"
end
copyrow(newVarName) click to toggle source
# File lib/ObjCGenerator/types.rb, line 138
def copyrow newVarName
  "#{newVarName}.#{self.varname}  = [self.#{self.varname} copy];"
end
default_value() click to toggle source
# File lib/ObjCGenerator/types.rb, line 123
def default_value
  "@\"\""
end
description_row() click to toggle source
# File lib/ObjCGenerator/types.rb, line 135
def description_row
  "@\"self.#{self.varname} = %@\" , self.#{self.varname}"
end
hash_row() click to toggle source
# File lib/ObjCGenerator/types.rb, line 141
def hash_row
  "[self.#{self.varname} hash];"
end
inEquality_test(other) click to toggle source
# File lib/ObjCGenerator/types.rb, line 132
def inEquality_test other
  "![self.#{self.varname}  isEqual:#{other}.#{self.varname}]"
end
property_definition() click to toggle source
# File lib/ObjCGenerator/types.rb, line 120
def property_definition
  "@property (nonatomic) NSString *#{@varname};"
end
to_dictionary_item() click to toggle source
# File lib/ObjCGenerator/types.rb, line 129
def to_dictionary_item
  "@\"#{@varname}\" : self.#{@varname}  ?: @\"\""
end