Class: Iterm2mintty::ThemeComponent
- Inherits:
-
Struct
- Object
- Struct
- Iterm2mintty::ThemeComponent
- Defined in:
- lib/iterm2mintty/theme_component.rb
Direct Known Subclasses
BGColorComponent, BlackComponent, BlueComponent, BoldBlackComponent, BoldBlueComponent, BoldCyanComponent, BoldGreenComponent, BoldMagentaComponent, BoldRedComponent, BoldWhiteComponent, BoldYellowComponent, CursorColorComponent, CyanComponent, FGColorComponent, GreenComponent, MagentaComponent, RedComponent, WhiteComponent, YellowComponent
Instance Attribute Summary collapse
-
#blue ⇒ Object
Returns the value of attribute blue.
-
#green ⇒ Object
Returns the value of attribute green.
-
#red ⇒ Object
Returns the value of attribute red.
Class Method Summary collapse
Instance Attribute Details
#blue ⇒ Object
Returns the value of attribute blue
2 3 4 |
# File 'lib/iterm2mintty/theme_component.rb', line 2 def blue @blue end |
#green ⇒ Object
Returns the value of attribute green
2 3 4 |
# File 'lib/iterm2mintty/theme_component.rb', line 2 def green @green end |
#red ⇒ Object
Returns the value of attribute 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 |