lib/vedeu/models/escape.rb in vedeu-0.5.13 vs lib/vedeu/models/escape.rb in vedeu-0.6.0

- old
+ new

@@ -18,14 +18,18 @@ @attributes = defaults.merge!(attributes) @attributes.each { |key, value| instance_variable_set("@#{key}", value) } end - # @return [String] - def colour - '' + # @return [NilClass] + def null + nil end + alias_method :background, :null + alias_method :colour, :null + alias_method :foreground, :null + alias_method :style, :null # An object is equal when its values are the same. # # @param other [Vedeu::Views::Char] # @return [Boolean] @@ -35,14 +39,9 @@ alias_method :==, :eql? # @return [String] def position Vedeu::Position.coerce(@position) - end - - # @return [String] - def style - '' end # @return [String] def to_s "#{position}#{value}"