Method: Textbringer::Face#initialize
- Defined in:
- lib/textbringer/face.rb
#initialize(name, **opts) ⇒ Face
Returns a new instance of Face.
26 27 28 29 30 31 |
# File 'lib/textbringer/face.rb', line 26 def initialize(name, **opts) @name = name @color_pair = @@next_color_pair @@next_color_pair += 1 update(**opts) end |