Method: CSL::Node#each

Defined in:
lib/csl/node.rb

#each(&block) ⇒ Object Also known as: each_pair

Iterates through the Node’s attributes



271
272
273
274
275
276
277
278
# File 'lib/csl/node.rb', line 271

def each(&block)
  if block_given?
    attributes.each_pair(&block)
    self
  else
    to_enum
  end
end