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.
-
#warnings ⇒ Object
readonly
Warnings from Autoprefixer.
Instance Method Summary collapse
-
#initialize(css, map, warnings) ⇒ Result
constructor
A new instance of Result.
-
#to_s ⇒ Object
Stringify prefixed CSS.
Constructor Details
#initialize(css, map, warnings) ⇒ Result
Returns a new instance of Result.
15 16 17 18 19 |
# File 'lib/autoprefixer-rails/result.rb', line 15 def initialize(css, map, warnings) @warnings = warnings @css = css @map = map end |
Instance Attribute Details
#css ⇒ Object (readonly)
Prefixed CSS after Autoprefixer
7 8 9 |
# File 'lib/autoprefixer-rails/result.rb', line 7 def css @css end |
#map ⇒ Object (readonly)
Source map of changes
10 11 12 |
# File 'lib/autoprefixer-rails/result.rb', line 10 def map @map end |
#warnings ⇒ Object (readonly)
Warnings from Autoprefixer
13 14 15 |
# File 'lib/autoprefixer-rails/result.rb', line 13 def warnings @warnings end |
Instance Method Details
#to_s ⇒ Object
Stringify prefixed CSS
22 23 24 |
# File 'lib/autoprefixer-rails/result.rb', line 22 def to_s @css end |