lib/vedeu/null/border.rb in vedeu-0.4.54 vs lib/vedeu/null/border.rb in vedeu-0.4.55
- old
+ new
@@ -12,13 +12,15 @@
# @return [String|NilClass]
attr_reader :name
# Returns a new instance of Vedeu::Null::Border.
#
- # @param name [String|NilClass]
+ # @param attributes [Hash<Symbol => void>]
+ # @option attributes name [String|NilClass]
# @return [Vedeu::Null::Border]
- def initialize(name = nil)
- @name = name
+ def initialize(attributes = {})
+ @attributes = attributes
+ @name = @attributes[:name]
end
# @return [Fixnum]
def bx
geometry.x