Class: Isna::String

Inherits:
Object
  • Object
show all
Includes:
Backgrounds, Behaviours, Colors, Format
Defined in:
lib/isna/string.rb

Instance Attribute Summary

Attributes included from Format

#isna_format

Instance Method Summary collapse

Methods included from Backgrounds

#blue_background, #cyan_background, #gray_background, #green_background, #pink_background, #red_background, #yellow_background

Methods included from Behaviours

#blink, #bolder, #brighter, #underline

Methods included from Colors

#black, #blue, #cyan, #green, #pink, #red, #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, 40]
  self
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/isna/string.rb', line 16

def to_s
  super + @string + closing
end