Method: Assetify::Asset#data

Defined in:
lib/assetify/asset.rb

#dataObject



74
75
76
77
78
79
80
81
82
83
# File 'lib/assetify/asset.rb', line 74

def data
  return @data if @data
  # Get data, from a pkg or download directly
  @data = @pkg ? @pkg.get(url, :force).values.first : get_data(url)

  # Compile/fix paths if asked to
  @data = Pathfix.new(@data, @as, @ns).fix if @as

  @data
end