Sha256: 0869352f4298ee0dc5aebf9d4306266986196a4ddd2112d40c9ab4725ca51045
Contents?: true
Size: 494 Bytes
Versions: 18
Compression:
Stored size: 494 Bytes
Contents
require 'twitter/base' module Twitter class Size < Twitter::Base attr_reader :h, :resize, :w alias height h alias width w # @param other [Twitter::Size] # @return [Boolean] def ==(other) super || size_equal(other) || attrs_equal(other) end protected # @param other [Twitter::Size] # @return [Boolean] def size_equal(other) self.class == other.class && !other.h.nil? && h == other.h && !other.w.nil? && w == other.w end end end
Version data entries
18 entries across 18 versions & 1 rubygems