Class: LLMed::Application::CodeComment
- Inherits:
-
Object
- Object
- LLMed::Application::CodeComment
- Defined in:
- lib/llmed/application.rb
Instance Method Summary collapse
- #begin ⇒ Object
- #end ⇒ Object
-
#initialize(language) ⇒ CodeComment
constructor
A new instance of CodeComment.
Constructor Details
#initialize(language) ⇒ CodeComment
Returns a new instance of CodeComment.
11 12 13 14 15 |
# File 'lib/llmed/application.rb', line 11 def initialize(language) raise "language #{language} not supported" if code_comment(language.to_sym).nil? @language = language.to_sym end |
Instance Method Details
#begin ⇒ Object
17 18 19 |
# File 'lib/llmed/application.rb', line 17 def begin code_comment(@language).first end |
#end ⇒ Object
21 22 23 |
# File 'lib/llmed/application.rb', line 21 def end code_comment(@language).last end |