Apidock_header
  • Welcome
  • Register
  • Projects
  • Help
  • About
  • Blog
Use OpenID
  • Rspec_icon_16RSpec
  • Rails_icon_16Ruby on Rails
  • Ruby_icon_16Ruby
method

has_attributes?

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: REXML::Element
  • 1_8_6_287 (0)
  • 1_8_7_72 (0)
  • 1_8_7_330 (0)
  • 1_9_1_378 (-38)
  • 1_9_2_180 (0)
  • 1_9_3_125 (0)
  • 1_9_3_392 (0)
  • 2_1_10 (0)
  • 2_2_9 (0)
  • 2_4_6 (0)
  • 2_5_5 (0)
  • 2_6_3 (0)
  • What's this?

Related methods

  • Class methods (1)
  • Importance_2_sm new
  • Instance methods (42)
  • Importance_1_sm []
  • Importance_2_sm add_attribute
  • Importance_1_sm add_attributes
  • Importance_1_sm add_element
  • Importance_1_sm add_namespace
  • Importance_1_sm add_text
  • Importance_0_sm attribute
  • Importance_1_sm cdatas
  • Importance_1_sm clone
  • Importance_1_sm comments
  • Importance_2_sm delete_attribute
  • Importance_1_sm delete_element
  • Importance_1_sm delete_namespace
  • Importance_1_sm document
  • Importance_1_sm each_element
  • Importance_2_sm each_element_with_attribute
  • Importance_2_sm each_element_with_text
  • Importance_1_sm each_with_something Icon_private_sm
  • Importance_1_sm get_elements
  • Importance_2_sm get_text
  • Importance_1_sm has_attributes?
  • Importance_1_sm has_elements?
  • Importance_1_sm has_text?
  • Importance_0_sm ignore_whitespace_nodes
  • Importance_0_sm inspect
  • Importance_1_sm instructions
  • Importance_2_sm namespace
  • Importance_0_sm namespaces
  • Importance_1_sm next_element
  • Importance_0_sm node_type
  • Importance_1_sm prefixes
  • Importance_1_sm previous_element
  • Importance_1_sm raw
  • Importance_0_sm root
  • Importance_2_sm root_node
  • Importance_2_sm text
  • Importance_2_sm text=
  • Importance_1_sm texts
  • Importance_0_sm __to_xpath_helper Icon_private_sm
  • Importance_1_sm whitespace
  • Importance_2_sm write
  • Importance_0_sm xpath

Icon_private_sm = private
Icon_protected_sm = protected

has_attributes?() public

Evaluates to true if this element has any attributes set, false otherwise.

Show source
# File lib/rexml/element.rb, line 603
    def has_attributes?
      return !@attributes.empty?
    end
Register or log in to add new notes.
  • Welcome
  • Register
  • Projects
  • Help
  • About
  • Blog


APIdock release: IRON STEVE (1.4)
If you have any comments, ideas or feedback, feel free to contact us at

Go to Nodeta blog APIdock copyright Nodeta Oy 2008-2025