lib/vedeu/null/interface.rb in vedeu-0.4.58 vs lib/vedeu/null/interface.rb in vedeu-0.4.59
- old
+ new
@@ -16,18 +16,24 @@
# @!attribute [r] attributes
# @return [String]
attr_reader :attributes
+ # @!attribute [rw] visible
+ # @return [String]
+ attr_accessor :visible
+ alias_method :visible?, :visible
+
# Returns a new instance of Vedeu::Null::Interface.
#
# @param attributes [Hash<Symbol => void>]
# @option attributes name [String]
# @return [Vedeu::Null::Interface]
def initialize(attributes = {})
@attributes = attributes
@name = @attributes[:name]
+ @visible = @attributes[:visible]
end
# @return [NilClass]
def hide
nil
@@ -64,16 +70,9 @@
# The null interface should not be visible.
#
# @return [FalseClass]
def visible?
- false
- end
-
- # Override the visible= setter usually found on a Vedeu::Interface.
- #
- # @return [FalseClass]
- def visible=(*)
false
end
end # Interface