Sha256: a3742833b44608b928dec745eae9ca9368103ca57850524016a09f1abb698aea
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
module Jaspion module Kilza class Swift class Class include Jaspion::Kilza::Class def initialize(name) name = name + RESERVED_CLASS_POSFIX unless RESERVED_WORDS.index(name.downcase).nil? super(name) end def push(pr) if pr.object? || (pr.array? && pr.null?) pr.type = pr.class_name push_import("import #{pr.class_name}") end pr.type = Jaspion::Kilza::Swift::TYPES[pr.type] unless Jaspion::Kilza::Swift::TYPES[pr.type].nil? pr.type = "[#{pr.type}]" if pr.array? super(pr) end def sources [code('swift', 'swift')] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jaspion-kilza-1.1.2 | lib/jaspion/kilza/language/swift/class.rb |