Sha256: 6aa8ea10f92e119c97413e09b2b3b9714fab1cba8b51bf5479b374d05a088919
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 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 private # @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.0.0.rc.1 | lib/twitter/size.rb |