Skip to content

Block handling gets confused by super calls with parenthesis #549

Description

@rosalynnas

It takes this line

super() { |v| v.send(instance_variable_get(:@__smart_hashify__transform_method)) }

And changes it to

super() do |v| v.send(instance_variable_get(:@__smart_hashify__transform_method)) end

Without the parenthesis, the line is left alone. This also happens when there are arguments inside the parenthesis. I would expect it to behave the same with or without parenthesis, or format the do end block properly onto multiple lines.

syntax_tree (6.3.0) ran from CLI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions