Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Coercing strings containing '-class' into symbols with : breaks indenting #133

Closed
andrewGarson opened this Issue Mar 6, 2013 · 2 comments

Comments

Projects
None yet
2 participants

Ran into this while using Nokogiri::XML::Builder to generate a config file with a tag called "factory-class"

Strings not containing '-class' seem to work fine. "_class" is ok, as is "-anything else"

def example
  xml.send(:'factory-class')
  end

"factory-class".to_sym works fine

Member

AndrewRadev commented Jun 23, 2013

Sorry for the late response. I can't seem to be able to reproduce the issue. For me, this example indents correctly. Perhaps it was fixed at some point with another issue? Could you checkout the current master and see if you're still getting the same problem?

Member

AndrewRadev commented Feb 23, 2014

For now, I'm going to close the issue, since I can't reproduce it. I'm assuming it got fixed at some point by accident.

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