Module: GeekPainter::RubyCoreExtensions::String

Defined in:
lib/geek_painter/core-ext.rb

Instance Method Summary collapse

Instance Method Details

#in(color_name) ⇒ Object



10
11
12
# File 'lib/geek_painter/core-ext.rb', line 10

def in(color_name)
  [self, color_name]
end

#to_rawObject



14
15
16
# File 'lib/geek_painter/core-ext.rb', line 14

def to_raw
  self.gsub("\e", "\\e")
end