Class: Isna::String
- Inherits:
-
Object
- Object
- Isna::String
- Includes:
- Backgrounds, Behaviours, Colors, Format
- Defined in:
- lib/isna/string.rb
Instance Attribute Summary
Attributes included from Format
Instance Method Summary collapse
-
#initialize(string) ⇒ String
constructor
A new instance of String.
- #to_s ⇒ Object
Methods included from Backgrounds
#black_background, #blue_background, #cyan_background, #green_background, #pink_background, #red_background, #white_background, #yellow_background
Methods included from Behaviours
#blink, #bright, #dark, #fast_blink, #italic, #negative, #normal, #underline
Methods included from Colors
#black, #blue, #cyan, #green, #pink, #red, #white, #yellow
Methods included from Format
#change_background, #change_color, #change_type, #closing
Constructor Details
#initialize(string) ⇒ String
Returns a new instance of String.
10 11 12 13 14 |
# File 'lib/isna/string.rb', line 10 def initialize(string) @string = string @isna_format = [0, 0, 1] self end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/isna/string.rb', line 16 def to_s super + @string + closing end |