Method: YARD::Options#==

Defined in:
lib/yard/options.rb

#==(other) ⇒ Boolean

Returns whether another Options object equals the keys and values of this options object.

Returns:

  • (Boolean)

    whether another Options object equals the keys and values of this options object



157
158
159
160
161
162
163
# File 'lib/yard/options.rb', line 157

def ==(other)
  case other
  when Options; to_hash == other.to_hash
  when Hash; to_hash == other
  else false
  end
end