Class: Iterm2mintty::FGColor

Inherits:
Object
  • Object
show all
Includes:
Colorable, MinttyColor
Defined in:
lib/iterm2mintty.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Colorable

#blue, #green, #red

Methods included from MinttyColor

#to_mintty

Constructor Details

#initialize(color:) ⇒ FGColor

Returns a new instance of FGColor.



99
100
101
# File 'lib/iterm2mintty.rb', line 99

def initialize(color:)
  @color = color
end

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



97
98
99
# File 'lib/iterm2mintty.rb', line 97

def color
  @color
end

Instance Method Details

#nameObject



103
104
105
# File 'lib/iterm2mintty.rb', line 103

def name
  "ForegroundColour"
end