ruby-beautify icon indicating copy to clipboard operation
ruby-beautify copied to clipboard

Methods labeled `private_class_method` incorrectly indented

Open nbr opened this issue 8 years ago • 0 comments

When invoking ruby-beautify -c 2 -s, I run into the following:

Expected:

module Foo
  def self.bar
    foo + 'bar'
  end

  private_class_method def self.foo
    'foo'
  end
end

Received:

module Foo
  def self.bar
    foo + 'bar'
  end

  private_class_method def self.foo
  'foo'
end
end

nbr avatar Feb 07 '17 17:02 nbr