instance method
nil?
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
nil?()
For some reason, nil? is sent to the XmlMarkup object. If nil? is not defined and method_missing is invoked, some strange kind of recursion happens. Since nil? won’t ever be an XML tag, it is pretty safe to define it here. (Note: this is an example of cargo cult programming, cf. fishbowl.pastiche.org/2004/10/13/cargo_cult_programming).
Source
# File activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb, line 107
def nil?
false
end
Defined in activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb line 107
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Builder::XmlBase