class Styler::StyleSubstraction
Attributes
a[R]
b[R]
Public Class Methods
new(a, b)
click to toggle source
# File lib/styler/style_substraction.rb, line 4 def initialize(a, b) @a, @b = a, b end
Public Instance Methods
-(other)
click to toggle source
# File lib/styler/style_substraction.rb, line 8 def -(other) self.class.new(self, other) end
to_a()
click to toggle source
# File lib/styler/style_substraction.rb, line 12 def to_a if b.is_a? String a.to_a - [b.to_s] else a.to_a - b.to_a end end
to_s()
click to toggle source
# File lib/styler/style_substraction.rb, line 20 def to_s to_a.join(" ") end