class DYI::Stylesheet::Style
Attributes
body[R]
@return [String] body of client scripting
content_type[R]
@return [String] content-type of script
media[R]
title[R]
Public Class Methods
new(body, content_type='text/css', options={})
click to toggle source
@param [String] body body of client scripting @param [String] content_type
content-type of script
# File lib/dyi/stylesheet.rb, line 42 def initialize(body, content_type='text/css', options={}) @content_type = content_type @body = body @media = options[:media] @title = options[:title] end
Public Instance Methods
has_uri_reference?()
click to toggle source
Returns this script includes reference of external script file. @return [Boolean] always returns false
# File lib/dyi/stylesheet.rb, line 55 def has_uri_reference? false end
include_external_file?()
click to toggle source
# File lib/dyi/stylesheet.rb, line 49 def include_external_file? false end
write_as(formatter, io=$>)
click to toggle source
Writes the buffer contents of the object. @param [Formatter::Base] a formatter for export @param [IO] io a buffer that is written
# File lib/dyi/stylesheet.rb, line 62 def write_as(formatter, io=$>) formatter.write_style(self, io) end