Class: Iterm2mintty::ThemeComponent

Inherits:
Struct
  • Object
show all
Defined in:
lib/iterm2mintty/theme_component.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#blueObject

Returns the value of attribute blue

Returns:

  • (Object)

    the current value of blue



2
3
4
# File 'lib/iterm2mintty/theme_component.rb', line 2

def blue
  @blue
end

#greenObject

Returns the value of attribute green

Returns:

  • (Object)

    the current value of green



2
3
4
# File 'lib/iterm2mintty/theme_component.rb', line 2

def green
  @green
end

#redObject

Returns the value of attribute red

Returns:

  • (Object)

    the current value of red



2
3
4
# File 'lib/iterm2mintty/theme_component.rb', line 2

def red
  @red
end

Class Method Details

.ansi(index) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/iterm2mintty/theme_component.rb', line 3

def self.ansi(index)
  [
    BlackComponent,
    RedComponent,
    GreenComponent,
    YellowComponent,
    BlueComponent,
    MagentaComponent,
    CyanComponent,
    WhiteComponent,
    BoldBlackComponent,
    BoldRedComponent,
    BoldGreenComponent,
    BoldYellowComponent,
    BoldBlueComponent,
    BoldMagentaComponent,
    BoldCyanComponent,
    BoldWhiteComponent,
  ][index]
end