Skip to content

Replacement for Haml::AttributeParser available? #1085

@raxod502

Description

@raxod502

Getting this when upgrading from 5.x to 6.x of haml:

NameError: undefined method `available?' for class `Haml::AttributeParser'

I notice that, indeed, this method has been removed. What should we use instead?

The online docs (https://haml.info/docs/yardoc/Haml/AttributeParser.html), which I understand per #1064 is not updated for 6.x, suggests that available? should "return true if AttributeParser.parse can be used". Does the absence of this method mean that in haml 6.x we can always expect AttributeParser.parse to be available?

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