Skip to content

Block handling gets confused by super calls with parenthesis #549

@rosalynnas

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.

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