class Roll::Amp::Style::InternalCssFile
The internal CSS file. Provides API to access preset CSS files of this library.
Public Class Methods
new(css_file_name)
click to toggle source
Initializes new instance of the internal CSS file. @param css_file_name [String] the file name of the CSS file.
# File lib/roll/amp/style/internal_css_file.rb, line 9 def initialize(css_file_name) @css_file_name = css_file_name end
Public Instance Methods
read()
click to toggle source
Reads content of the file. @return [String] the file content.
# File lib/roll/amp/style/internal_css_file.rb, line 15 def read File.read(full_path) end
Private Instance Methods
full_path()
click to toggle source
# File lib/roll/amp/style/internal_css_file.rb, line 21 def full_path File.expand_path( "../style/css/#{@css_file_name}", File.dirname(__FILE__) ) end