lib/vedeu/null/interface.rb in vedeu-0.5.3 vs lib/vedeu/null/interface.rb in vedeu-0.5.4

- old
+ new

@@ -33,40 +33,28 @@ @name = @attributes[:name] @visible = @attributes[:visible] end # @return [NilClass] - def hide + def null nil end + alias_method :hide, :null + alias_method :parent, :null + alias_method :show, :null + alias_method :toggle, :null + alias_method :zindex, :null # @return [Boolean] def null? true end - # The null interface should not have a parent. - # - # @return [NilClass] - def parent - nil - end - - # @return [NilClass] - def show - nil - end - # Pretend to store this model in the repository. # # @return [Vedeu::Null::Interface] def store self - end - - # @return [NilClass] - def toggle - nil end # The null interface should not be visible. # # @return [FalseClass]