Class: Roll::Amp::Style::InternalCssFile
- Inherits:
-
Object
- Object
- Roll::Amp::Style::InternalCssFile
- Defined in:
- lib/roll/amp/style/internal_css_file.rb
Overview
The internal CSS file. Provides API to access preset CSS files of this library.
Instance Method Summary collapse
-
#initialize(css_file_name) ⇒ InternalCssFile
constructor
Initializes new instance of the internal CSS file.
-
#read ⇒ String
Reads content of the file.
Constructor Details
#initialize(css_file_name) ⇒ InternalCssFile
Initializes new instance of the internal CSS file.
9 10 11 |
# File 'lib/roll/amp/style/internal_css_file.rb', line 9 def initialize(css_file_name) @css_file_name = css_file_name end |
Instance Method Details
#read ⇒ String
Reads content of the file.
15 16 17 |
# File 'lib/roll/amp/style/internal_css_file.rb', line 15 def read File.read(full_path) end |