Class: Roll::Amp::Style::InternalCssFile

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(css_file_name) ⇒ InternalCssFile

Initializes new instance of the internal CSS file.

Parameters:

  • css_file_name (String)

    the file name of the 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

#readString

Reads content of the file.

Returns:

  • (String)

    the file content.



15
16
17
# File 'lib/roll/amp/style/internal_css_file.rb', line 15

def read
  File.read(full_path)
end