Module: AblyUi::Integration

Defined in:
lib/ably_ui.rb

Class Method Summary collapse

Class Method Details

.asset_pathsObject



6
7
8
# File 'lib/ably_ui.rb', line 6

def asset_paths
  File.expand_path("../lib", File.dirname(__FILE__))
end

.icon_sprites_pathsObject



16
17
18
# File 'lib/ably_ui.rb', line 16

def icon_sprites_paths
  Dir[File.join(File.dirname(__FILE__), 'ably_ui', '**' , "sprites.svg")]
end

.precompile_images_pathsObject



10
11
12
13
14
# File 'lib/ably_ui.rb', line 10

def precompile_images_paths
  ["*.svg", "*.png", "*.jpg", "*.jpeg"].map do |ext|
    Dir[File.join(File.dirname(__FILE__), 'ably_ui', '**', 'images' , ext)]
  end.flatten
end