Sha256: 8b8e0b24f2536065744cef0434173471ebcc537664955ddadb22573cfde3d42d
Contents?: true
Size: 609 Bytes
Versions: 7
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
7 entries across 7 versions & 1 rubygems