Module: GIPainter_grid

Defined in:
lib/GIPainter-grid.rb,
lib/GIPainter-grid/version.rb

Constant Summary collapse

VERSION =
'0.4.1'

Class Method Summary collapse

Class Method Details

.assets_pathObject



21
22
23
# File 'lib/GIPainter-grid.rb', line 21

def assets_path
  @assets_path ||= File.join gem_path, 'assets'
end

.compass?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/GIPainter-grid.rb', line 25

def compass?
  defined?(::Compass::Frameworks)
end

.gem_pathObject

Paths



13
14
15
# File 'lib/GIPainter-grid.rb', line 13

def gem_path
  @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
end

.load!Object



7
8
9
10
# File 'lib/GIPainter-grid.rb', line 7

def load!
  register_compass_extension if compass?
  configure_sass
end

.stylesheets_pathObject



17
18
19
# File 'lib/GIPainter-grid.rb', line 17

def stylesheets_path
  File.join assets_path, 'stylesheets'
end