class Forspell::Loaders::C
Public Instance Methods
input()
click to toggle source
Calls superclass method
# File lib/forspell/loaders/c.rb, line 6 def input res = super res.encode('UTF-8', invalid: :replace, replace: '?') unless res.valid_encoding? res end
Private Instance Methods
comments()
click to toggle source
# File lib/forspell/loaders/c.rb, line 14 def comments YARD::Parser::C::CParser.new(@input, @file).parse .grep(YARD::Parser::C::Comment) end
line(comment)
click to toggle source
# File lib/forspell/loaders/c.rb, line 23 def line(comment) comment.line end
text(comment)
click to toggle source
# File lib/forspell/loaders/c.rb, line 19 def text(comment) comment.source end