Method: YARD::Templates::Section#==

Defined in:
lib/yard/templates/section.rb

#==(other) ⇒ Object

Since:

  • 0.6.0


35
36
37
38
39
40
41
42
43
44
# File 'lib/yard/templates/section.rb', line 35

def ==(other)
  case other
  when Section
    eql?(other)
  when Array
    to_a == other
  else
    name == other
  end
end