class Apropos::ClassList
ClassList
wraps a list of CSS class selectors with several abilities:
-
Can be combined with other ClassLists
-
Can be compared to
MediaQuery
orClassList
objects viasort_value
,type
-
Can be converted to CSS output
Attributes
list[R]
sort_value[R]
Public Class Methods
new(list, sort_value=0)
click to toggle source
# File lib/apropos/class_list.rb, line 9 def initialize(list, sort_value=0) @list = list @sort_value = sort_value end
Public Instance Methods
combine(other)
click to toggle source
# File lib/apropos/class_list.rb, line 14 def combine(other) self.class.new(list + other.list) end
to_css()
click to toggle source
# File lib/apropos/class_list.rb, line 18 def to_css list.join(', ') end
type()
click to toggle source
# File lib/apropos/class_list.rb, line 22 def type "class" end