Sha256: 06f5d7bf8479417567ea445a667d06fbdc808011742151ba2969a713a61bacaa

Contents?: true

Size: 877 Bytes

Versions: 14

Compression:

Stored size: 877 Bytes

Contents

module Vedeu

  module Null

    # Provides a non-existent model to swallow messages.
    class Generic

      # Returns an instance of the Vedeu::Null::Generic class.
      #
      # @return [Vedeu::Null::Generic]
      def initialize; end

      # @return [NilClass]
      def add(*)
        nil
      end

      # @return [NilClass]
      def colour
        nil
      end

      # @return [NilClass]
      def parent
        nil
      end

      # @return [Vedeu::Null::Generic]
      def store
        self
      end

      # @return [NilClass]
      def style
        nil
      end

      # The generic null should not be visible.
      #
      # @return [FalseClass]
      def visible?
        false
      end
      alias_method :visible, :visible?

      # @return [FalseClass]
      def visible=(*)
        false
      end

    end # Generic

  end # Null

end # Vedeu

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
vedeu-0.4.32 lib/vedeu/null/generic.rb
vedeu-0.4.31 lib/vedeu/null/generic.rb
vedeu-0.4.30 lib/vedeu/null/generic.rb
vedeu-0.4.29 lib/vedeu/null/generic.rb
vedeu-0.4.28 lib/vedeu/null/generic.rb
vedeu-0.4.27 lib/vedeu/null/generic.rb
vedeu-0.4.26 lib/vedeu/null/generic.rb
vedeu-0.4.25 lib/vedeu/null/generic.rb
vedeu-0.4.24 lib/vedeu/null/generic.rb
vedeu-0.4.23 lib/vedeu/null/generic.rb
vedeu-0.4.22 lib/vedeu/null/generic.rb
vedeu-0.4.21 lib/vedeu/null/generic.rb
vedeu-0.4.20 lib/vedeu/null/generic.rb
vedeu-0.4.19 lib/vedeu/null/generic.rb