lib/vedeu/null/interface.rb in vedeu-0.4.45 vs lib/vedeu/null/interface.rb in vedeu-0.4.46
- old
+ new
@@ -1,14 +1,18 @@
+require 'vedeu/output/presentation'
+
module Vedeu
module Null
# Provides a non-existent model to swallow messages.
#
# @api private
class Interface
+ include Vedeu::Presentation
+
# Returns a new instance of Vedeu::Null::Interface.
#
# @param name [String]
# @return [Vedeu::Null::Interface]
def initialize(name = nil)
@@ -18,9 +22,16 @@
# @return [Hash<Symbol => String>]
def attributes
{
name: name,
}
+ end
+
+ # The null interface should not have a parent.
+ #
+ # @return [NilClass]
+ def parent
+ nil
end
# Pretend to store this model in the repository.
#
# @return [Vedeu::Null::Interface]