Module: Jekyll::Assets::Patches::Sprockets::Asset
- Included in:
- Sprockets::Asset
- Defined in:
- lib/jekyll/assets/patches/asset.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
Returns the value of attribute environment.
Instance Method Summary collapse
Instance Attribute Details
#environment ⇒ Object
Returns the value of attribute environment.
10 11 12 |
# File 'lib/jekyll/assets/patches/asset.rb', line 10 def environment @environment end |
Instance Method Details
#data_uri ⇒ Object
–
19 20 21 22 |
# File 'lib/jekyll/assets/patches/asset.rb', line 19 def data_uri "data:#{content_type};base64,#{Rack::Utils.escape( Base64.encode64(to_s))}" end |
#digest_path ⇒ Object
–
13 14 15 16 |
# File 'lib/jekyll/assets/patches/asset.rb', line 13 def digest_path environment.asset_config[:digest] ? \ super : logical_path end |