Sha256: a923ceb848021cefcb2928a073019036e82052a778f8194b0e18f3f75811ac7a
Contents?: true
Size: 609 Bytes
Versions: 6
Compression:
Stored size: 609 Bytes
Contents
module Vedeu class Style class << self def set(style) new(style).set end end def initialize(style) @style = style end def set case style when :bold then Esc.bold when :clear then Esc.clear when :hide_cursor then Esc.hide_cursor when :inverse then Esc.inverse when :reset then Esc.reset when :normal then Esc.reset when :show_cursor then Esc.show_cursor when :underline then Esc.underline else '' end end private attr_reader :style end end
Version data entries
6 entries across 6 versions & 1 rubygems