Class: Coloration::Converters::AbstractConverter
- Defined in:
- lib/coloration/converters/abstract_converter.rb
Direct Known Subclasses
Textmate2JEditConverter, Textmate2KatePartConverter, Textmate2VimConverter
Class Attribute Summary collapse
-
.in_theme_type ⇒ Object
readonly
Returns the value of attribute in_theme_type.
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
-
#items ⇒ Object
Returns the value of attribute items.
-
#name ⇒ Object
Returns the value of attribute name.
-
#result ⇒ Object
Returns the value of attribute result.
-
#ui ⇒ Object
Returns the value of attribute ui.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv = ARGV) ⇒ AbstractConverter
constructor
A new instance of AbstractConverter.
- #process ⇒ Object
Constructor Details
#initialize(argv = ARGV) ⇒ AbstractConverter
Returns a new instance of AbstractConverter.
17 18 19 |
# File 'lib/coloration/converters/abstract_converter.rb', line 17 def initialize(argv = ARGV) @argv = argv end |
Class Attribute Details
.in_theme_type ⇒ Object (readonly)
Returns the value of attribute in_theme_type.
10 11 12 |
# File 'lib/coloration/converters/abstract_converter.rb', line 10 def in_theme_type @in_theme_type end |
Instance Attribute Details
#input ⇒ Object
Returns the value of attribute input.
7 8 9 |
# File 'lib/coloration/converters/abstract_converter.rb', line 7 def input @input end |
#items ⇒ Object
Returns the value of attribute items.
7 8 9 |
# File 'lib/coloration/converters/abstract_converter.rb', line 7 def items @items end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/coloration/converters/abstract_converter.rb', line 7 def name @name end |
#result ⇒ Object
Returns the value of attribute result.
7 8 9 |
# File 'lib/coloration/converters/abstract_converter.rb', line 7 def result @result end |
#ui ⇒ Object
Returns the value of attribute ui.
7 8 9 |
# File 'lib/coloration/converters/abstract_converter.rb', line 7 def ui @ui end |
Class Method Details
.process_cmd_line ⇒ Object
13 14 15 |
# File 'lib/coloration/converters/abstract_converter.rb', line 13 def self.process_cmd_line new(ARGV).process end |
Instance Method Details
#process ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/coloration/converters/abstract_converter.rb', line 21 def process return unless argv.any? read parse_input build_result write rescue Coloration::Readers::TextMateThemeReader::InvalidThemeError end |