Sha256: bcce9b2cee36cfa292e651b6fca621a548c7ee34832d1087923995f69e21eb6c
Contents?: true
Size: 1.43 KB
Versions: 5
Compression:
Stored size: 1.43 KB
Contents
module Vedeu module Geometry # Provides a non-existent model to swallow messages. # # @api private # class Null < Vedeu::Null::Generic extend Forwardable def_delegators :area, :north, :east, :south, :west, :top, :right, :bottom, :left, :y, :xn, :yn, :x, :height, :width # @!attribute [rw] maximised # @return [Boolean] attr_accessor :maximised # @!attribute [r] name # @return [String|NilClass] attr_reader :name # Returns a new instance of Vedeu::Geometry::Null. # # @param attributes [Hash<Symbol => void>] # @option attributes name [String|Symbol|NilClass] # @return [Vedeu::Geometry::Null] def initialize(attributes = {}) @attributes = attributes @name = @attributes[:name] @maximised = @attributes.fetch(:maximised, false) end private # @return [Vedeu::Geometry::Area] def area @area ||= Vedeu::Geometry::Area.from_attributes(y_default: Vedeu.height, x_default: Vedeu.width) end end # Null end # Geometry end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems