Class: CssTidy::Import
Instance Attribute Summary collapse
-
#import ⇒ Object
Returns the value of attribute import.
Instance Method Summary collapse
- #clear ⇒ Object
-
#initialize(text = '') ⇒ Import
constructor
A new instance of Import.
- #to_s(format = nil) ⇒ Object
Methods inherited from CssBase
Constructor Details
#initialize(text = '') ⇒ Import
Returns a new instance of Import.
6 7 8 9 |
# File 'lib/modules/css_import.rb', line 6 def initialize(text='') @import = text self end |
Instance Attribute Details
#import ⇒ Object
Returns the value of attribute import.
4 5 6 |
# File 'lib/modules/css_import.rb', line 4 def import @import end |
Instance Method Details
#clear ⇒ Object
19 20 21 |
# File 'lib/modules/css_import.rb', line 19 def clear @import = '' end |
#to_s(format = nil) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/modules/css_import.rb', line 11 def to_s(format=nil) unless @import.empty? "@import #{@import};" else '' end end |