lib/vedeu/null/buffer.rb in vedeu-0.5.3 vs lib/vedeu/null/buffer.rb in vedeu-0.5.4
- old
+ new
@@ -20,36 +20,22 @@
@attributes = attributes
@name = @attributes[:name]
end
# @return [NilClass]
- def clear
+ def null(*)
nil
end
+ alias_method :add, :null
+ alias_method :clear, :null
+ alias_method :hide, :null
+ alias_method :render, :null
+ alias_method :show, :null
+ alias_method :toggle, :null
- # @return [NilClass]
- def hide
- nil
- end
-
# @return [Boolean]
def null?
true
- end
-
- # @return [NilClass]
- def render
- nil
- end
-
- # @return [NilClass]
- def show
- nil
- end
-
- # @return [NilClass]
- def toggle
- nil
end
end # Buffer
end # Null