class Moblues::Generator::Objc::Type
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/moblues/generator/objc/type.rb, line 7 def initialize super(OBJC) end
Public Instance Methods
property_attributes(attribute)
click to toggle source
# File lib/moblues/generator/objc/type.rb, line 11 def property_attributes(attribute) attributes = [] case attribute.type when :string attributes = %w{nonatomic copy} when :number, :decimal, :date, :data, :id attributes = %w{nonatomic strong} else raise ArgumentError.new("unknown type #{type}") end if attribute.optional attributes << "nullable" end attributes end