Class: LLMed::Application::CodeComment

Inherits:
Object
  • Object
show all
Defined in:
lib/llmed/application.rb

Instance Method Summary collapse

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

#beginObject



17
18
19
# File 'lib/llmed/application.rb', line 17

def begin
  code_comment(@language).first
end

#endObject



21
22
23
# File 'lib/llmed/application.rb', line 21

def end
  code_comment(@language).last
end