Sha256: 53c70c82174445b8840c3d9cb384074f29bbdea572028aca34fde98f805f569e

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

class SparklesResource < Orange::Resource
  call_me :sparkles
  def stylesheets
    orange.options["stylesheets"] || []
  end
  def javascripts
    orange.options["javascripts"] || []
  end
  def site_name(packet, default = "An Orange Site")
    packet['site'] ? packet['site'].name : default
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
orange-sparkles-0.5.9 lib/orange-sparkles/sparkles_resource.rb