Module: Isna::Format

Included in:
String
Defined in:
lib/isna/format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#isna_formatObject

Returns the value of attribute isna_format.



5
6
7
# File 'lib/isna/format.rb', line 5

def isna_format
  @isna_format
end

Instance Method Details

#change_background(number) ⇒ Object



15
16
17
# File 'lib/isna/format.rb', line 15

def change_background number
  @isna_format[2] = number; self
end

#change_color(number) ⇒ Object



11
12
13
# File 'lib/isna/format.rb', line 11

def change_color number
  @isna_format[1] = number; self
end

#change_type(number) ⇒ Object



7
8
9
# File 'lib/isna/format.rb', line 7

def change_type number
  @isna_format[0] = number; self
end

#closingObject



23
24
25
# File 'lib/isna/format.rb', line 23

def closing
  ""
end

#to_sObject



19
20
21
# File 'lib/isna/format.rb', line 19

def to_s
  "[%s;%s;%sm" % @isna_format
end