Sha256: e88705122b48811f2ae619cf7f5ba6bf07aa2fcc121d738eca65bfa53a4e3a9a

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

require 'moblues/generator/base/type'

module Moblues
  module Generator
    module Objc
      class Type < Base::Type
        def initialize
          super(OBJC)
        end

        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
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
moblues-0.3.0 lib/moblues/generator/objc/type.rb
moblues-0.2.0 lib/moblues/generator/objc/type.rb