Module: Shipyard

Defined in:
lib/shipyard-framework.rb,
lib/shipyard-framework/icons.rb,
lib/shipyard-framework/version.rb,
app/helpers/shipyard/form_helper.rb,
app/helpers/shipyard/icon_helper.rb,
app/helpers/shipyard/alert_helper.rb,
app/helpers/shipyard/button_helper.rb,
app/helpers/shipyard/layout_helper.rb,
lib/shipyard-framework/rails/engine.rb,
lib/shipyard-framework/rails/railtie.rb,
lib/shipyard-framework/jekyll/alert_tag.rb,
lib/shipyard-framework/jekyll/button_tag.rb,
lib/shipyard-framework/jekyll/shipyard_version_tag.rb

Defined Under Namespace

Modules: AlertHelper, ButtonHelper, FormHelper, IconHelper, Jekyll, LayoutHelper, Rails Classes: Icons

Constant Summary collapse

VERSION =
'0.4.2'

Class Method Summary collapse

Class Method Details

.assets_pathObject



35
36
37
# File 'lib/shipyard-framework.rb', line 35

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

.gem_pathObject

Paths



19
20
21
# File 'lib/shipyard-framework.rb', line 19

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

.icons_pathObject



31
32
33
# File 'lib/shipyard-framework.rb', line 31

def icons_path
  File.join assets_path, 'icons'
end

.javascripts_pathObject



27
28
29
# File 'lib/shipyard-framework.rb', line 27

def javascripts_path
  File.join assets_path, 'javascripts'
end

.load!Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/shipyard-framework.rb', line 6

def load!
  if rails?
    register_rails_engine
  elsif sprockets?
    register_sprockets
  elsif jekyll?
    register_jekyll_tags
  end

  configure_sass
end

.stylesheets_pathObject



23
24
25
# File 'lib/shipyard-framework.rb', line 23

def stylesheets_path
  File.join assets_path, 'stylesheets'
end