class SyntaxTree::EmbDoc
=end
second line
first line
=begin
EmbDoc represents a multi-line comment.
def ===(other)
def ===(other) other.is_a?(EmbDoc) && value === other.value end
def accept(visitor)
def accept(visitor) visitor.visit_embdoc(self) end
def child_nodes
def child_nodes [] end
def comments
def comments [] end
def copy(value: nil, location: nil)
def copy(value: nil, location: nil) EmbDoc.new( value: value || self.value, location: location || self.location ) end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { value: value, location: location } end
def format(q)
def format(q) if (q.parent.is_a?(DefNode) && q.parent.endless?) || q.parent.is_a?(Statements) q.trim else q.breakable_return end q.text(value) end
def ignore?
def ignore? false end
def initialize(value:, location:)
def initialize(value:, location:) @value = value @location = location @leading = false @trailing = false end
def inline?
def inline? false end
def leading!
def leading! @leading = true end
def leading?
def leading? @leading end
def trailing!
def trailing! @trailing = true end
def trailing?
def trailing? @trailing end