Sha256: 138ebc79d8ff2ed094f607b32ea408bec13b7534c8251865422aae98b6f2ac95
Contents?: true
Size: 1.5 KB
Versions: 22
Compression:
Stored size: 1.5 KB
Contents
# frozen_string_literal: true module Vedeu module Views # Provides the default attributes for variaus Vedeu::Views models. # # @api private # module DefaultAttributes include Vedeu::Repositories::Defaults # @!attribute [r] align # @return [Vedeu::Coercers::Alignment] attr_reader :align # @!attribute [r] pad # @return [String] attr_reader :pad # @!attribute [r] truncate # @return [Boolean] attr_reader :truncate alias truncate? truncate # @!attribute [r] width # @return [Fixnum|NilClass] attr_reader :width # @!attribute [r] wordwrap # @return [Boolean] attr_reader :wordwrap alias wordwrap? wordwrap # @return [Hash<Symbol => void>] def attributes { align: align, client: client, colour: colour, name: name, pad: pad, parent: parent, style: style, truncate: truncate, width: width, wordwrap: wordwrap, } end private # @macro defaults_method def defaults { align: nil, client: nil, colour: nil, name: nil, pad: ' ', parent: nil, style: nil, truncate: false, value: '', width: nil, wordwrap: true, } end end # DefaultAttributes end # Views end # Vedeu
Version data entries
22 entries across 22 versions & 1 rubygems