Skip to content
On this page
class · Ruby 4.0

SyntaxSuggest::Capture::FallingIndentLines

< Object 1 instance methods 1 class methods

Shows the context around code provided by “falling” indentation

If this is the original code lines:

class OH
  def hello
    it "foo" do
  end
end

And this is the line that is captured

it "foo" do

It will yield its surrounding context:

Example
class OH
  def hello
  end
end

Example:

Example
FallingIndentLines.new(
    block: block,
    code_lines: @code_lines
).call do |line|
  @lines_to_output << line
end

Class methods 1

Instance methods 1