class Styler::Style
Attributes
collection[R]
name[R]
styles[R]
Public Class Methods
new(collection, name, styles = [])
click to toggle source
# File lib/styler/style.rb, line 4 def initialize(collection, name, styles = []) @collection = collection @name = name @styles = styles end
Public Instance Methods
-(other)
click to toggle source
# File lib/styler/style.rb, line 16 def -(other) Styler::StyleSubstraction.new(self, other) end
==(other)
click to toggle source
# File lib/styler/style.rb, line 10 def ==(other) self.class == other.class && name == other.name && to_a == other.to_a end
to_a()
click to toggle source
# File lib/styler/style.rb, line 20 def to_a styles.map(&:to_s) end
to_s()
click to toggle source
# File lib/styler/style.rb, line 24 def to_s to_a.join(" ") end