We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The XmlMarkup class overrides any method that is not part of its class, including Object and/or Kernel methods.
XmlMarkup
Simple examples:
[2] DEVELOPMENT(main)> xml = Builder::XmlMarkup.new => <is_a?>String</is_a?><inspect/>
I'm thinking that the is_a? method is being applied because irb is evaluating the argument.
is_a?
irb
[3] DEVELOPMENT(main)> puts xml.inspect <is_a?>String</is_a?><inspect/><inspect/> => nil
Yep. An explicit use of inspect causes another tag to be inserted.
inspect
It should be possible to use Ruby's Object and/or Kernel methods on an XmlMarkup instance without getting matching tags automatically inserted.
Some exceptions, like p and name, may need to be allowed, since those methods might also be common tags.
p
name
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
XmlMarkup
class overrides any method that is not part of its class, including Object and/or Kernel methods.Simple examples:
I'm thinking that the
is_a?
method is being applied becauseirb
is evaluating the argument.Yep. An explicit use of
inspect
causes another tag to be inserted.It should be possible to use Ruby's Object and/or Kernel methods on an
XmlMarkup
instance without getting matching tags automatically inserted.Some exceptions, like
p
andname
, may need to be allowed, since those methods might also be common tags.The text was updated successfully, but these errors were encountered: