Module: Shipyard
- Defined in:
- lib/shipyard-framework.rb,
lib/shipyard-framework/icons.rb,
lib/shipyard-framework/version.rb,
lib/shipyard-framework/rails/engine.rb,
lib/shipyard-framework/rails/railtie.rb,
lib/shipyard-framework/rails/icon_helper.rb,
lib/shipyard-framework/rails/alert_helper.rb,
lib/shipyard-framework/rails/button_helper.rb,
lib/shipyard-framework/rails/layout_helpers.rb
Defined Under Namespace
Modules: Rails
Classes: Icons
Constant Summary
collapse
- VERSION =
'0.2.6'
Class Method Summary
collapse
Class Method Details
.assets_path ⇒ Object
32
33
34
|
# File 'lib/shipyard-framework.rb', line 32
def assets_path
@assets_path ||= File.join gem_path, 'assets'
end
|
.gem_path ⇒ Object
16
17
18
|
# File 'lib/shipyard-framework.rb', line 16
def gem_path
@gem_path ||= File.expand_path '..', File.dirname(__FILE__)
end
|
.icons_path ⇒ Object
28
29
30
|
# File 'lib/shipyard-framework.rb', line 28
def icons_path
File.join assets_path, 'icons'
end
|
.javascripts_path ⇒ Object
24
25
26
|
# File 'lib/shipyard-framework.rb', line 24
def javascripts_path
File.join assets_path, 'javascripts'
end
|
.load! ⇒ Object
5
6
7
8
9
10
11
12
13
|
# File 'lib/shipyard-framework.rb', line 5
def load!
if rails?
register_rails_engine
elsif sprockets?
register_sprockets
end
configure_sass
end
|
.stylesheets_path ⇒ Object
20
21
22
|
# File 'lib/shipyard-framework.rb', line 20
def stylesheets_path
File.join assets_path, 'stylesheets'
end
|