Class: AutoprefixerRails::Result
- Inherits:
-
Object
- Object
- AutoprefixerRails::Result
- Defined in:
- lib/autoprefixer-rails/result.rb
Overview
Container of prefixed CSS and source map with changes
Instance Attribute Summary collapse
-
#css ⇒ Object
readonly
Prefixed CSS after Autoprefixer.
-
#map ⇒ Object
readonly
Source map of changes.
Instance Method Summary collapse
-
#initialize(css, map) ⇒ Result
constructor
A new instance of Result.
-
#to_s ⇒ Object
Stringify prefixed CSS.
Constructor Details
#initialize(css, map) ⇒ Result
Returns a new instance of Result.
10 11 12 13 |
# File 'lib/autoprefixer-rails/result.rb', line 10 def initialize(css, map) @css = css @map = map end |
Instance Attribute Details
#css ⇒ Object (readonly)
Prefixed CSS after Autoprefixer
5 6 7 |
# File 'lib/autoprefixer-rails/result.rb', line 5 def css @css end |
#map ⇒ Object (readonly)
Source map of changes
8 9 10 |
# File 'lib/autoprefixer-rails/result.rb', line 8 def map @map end |
Instance Method Details
#to_s ⇒ Object
Stringify prefixed CSS
16 17 18 |
# File 'lib/autoprefixer-rails/result.rb', line 16 def to_s @css end |