Sha256: 367abe802ee0cf5bd145094f0675f40fc5a3065e9f4324bae564a3c667c87a82
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
module XCAssets class Image attr_accessor :idiom attr_accessor :scale # The resource path # @return [Pathname] attr_reader :resource attr_reader :filename def initialize @idiom = 'universal' @scale = "2x" @resource = nil end def resource=(resource) @resource = resource @filename = @resource.basename.to_s end def contents hash = {} hash[:idiom] = idiom if idiom hash[:scale] = scale if scale hash[:filename] = filename if filename hash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
KCommercialPipeline-0.2.5.1 | lib/KCommercialPipeline/core/resource/xcassets/image.rb |