Class: Iterm2mintty
- Inherits:
-
Object
- Object
- Iterm2mintty
- Defined in:
- lib/iterm2mintty.rb,
lib/iterm2mintty/version.rb
Defined Under Namespace
Modules: Colorable, MinttyColor Classes: ANSIColor, BGColor, Color, CursorColor, FGColor, Mintty
Constant Summary collapse
- VERSION =
"0.0.2"
Instance Attribute Summary collapse
-
#ansi_colors ⇒ Object
readonly
Returns the value of attribute ansi_colors.
-
#pathname ⇒ Object
readonly
Returns the value of attribute pathname.
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(pathname:) ⇒ Iterm2mintty
constructor
A new instance of Iterm2mintty.
- #parsed_theme ⇒ Object
Constructor Details
#initialize(pathname:) ⇒ Iterm2mintty
Returns a new instance of Iterm2mintty.
8 9 10 |
# File 'lib/iterm2mintty.rb', line 8 def initialize(pathname:) @pathname = pathname end |
Instance Attribute Details
#ansi_colors ⇒ Object (readonly)
Returns the value of attribute ansi_colors.
6 7 8 |
# File 'lib/iterm2mintty.rb', line 6 def ansi_colors @ansi_colors end |
#pathname ⇒ Object (readonly)
Returns the value of attribute pathname.
6 7 8 |
# File 'lib/iterm2mintty.rb', line 6 def pathname @pathname end |
Instance Method Details
#convert ⇒ Object
12 13 14 15 16 |
# File 'lib/iterm2mintty.rb', line 12 def convert ansi_colors.map do |color| color.to_mintty + "\n" end.join end |
#parsed_theme ⇒ Object
40 41 42 |
# File 'lib/iterm2mintty.rb', line 40 def parsed_theme @parsed_theme ||= Plist.parse_xml(pathname) end |