Method: Parser::Source::Comment#initialize

Defined in:
lib/parser/source/comment.rb

#initialize(range) ⇒ Comment

Returns a new instance of Comment.

Parameters:

[View source] [View on GitHub]

67
68
69
70
71
72
# File 'lib/parser/source/comment.rb', line 67

def initialize(range)
  @location = Parser::Source::Map.new(range)
  @text     = range.source.freeze

  freeze
end