Class: Moblues::Generator::Objc::Type
- Inherits:
-
Base::Type
- Object
- Base::Type
- Moblues::Generator::Objc::Type
- Defined in:
- lib/moblues/generator/objc/type.rb
Constant Summary
Constants inherited from Base::Type
Base::Type::OBJC, Base::Type::SWIFT
Instance Method Summary collapse
-
#initialize ⇒ Type
constructor
A new instance of Type.
- #property_attributes(attribute) ⇒ Object
Methods inherited from Base::Type
#attribute_type, #relationship_type
Constructor Details
Instance Method Details
#property_attributes(attribute) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/moblues/generator/objc/type.rb', line 11 def property_attributes(attribute) case attribute.type when :string %w{nonatomic copy} when :number, :decimal, :date, :data, :id %w{nonatomic strong} else raise ArgumentError.new("unknown type #{type}") end end |