[フレーム]

Class: Parser::Source::Buffer

Inherits:
Object
  • Object
  • Parser::Source::Buffer
show all
Defined in:
opal/lib/opal/parser/patch.rb

Direct Known Subclasses

Opal::Parser::SourceBuffer

Instance Method Summary collapse

Instance Method Details

#source_linesObject

18
19
20
21
22
23
24
# File 'opal/lib/opal/parser/patch.rb', line 18
def source_lines
 @lines ||= begin
 lines = @source.lines.to_a
 lines << '' if @source.end_with?("\n")
 lines.map { |line| line.chomp("\n") }
 end
end

AltStyle によって変換されたページ (->オリジナル) /