lib/vedeu/api/stream.rb in vedeu-0.2.4 vs lib/vedeu/api/stream.rb in vedeu-0.2.5
- old
+ new
@@ -32,43 +32,9 @@
end
attributes[:align] = value.to_sym
end
- # Specify the background colour for a stream.
- #
- # @param value [String]
- #
- # @example
- # ...
- # stream do
- # background '#0022ff'
- # ... other stream directives ...
- #
- # @return [Hash]
- def background(value = '')
- fail InvalidSyntax, '`background` requires a value.' unless defined_value?(value)
-
- attributes[:colour].merge!({ background: value })
- end
-
- # Specify the foreground colour for a stream.
- #
- # @param value [String]
- #
- # @example
- # ...
- # stream do
- # foreground '#0022ff'
- # ... other stream directives ...
- #
- # @return [Hash]
- def foreground(value = '')
- fail InvalidSyntax, '`foreground` requires a value.' unless defined_value?(value)
-
- attributes[:colour].merge!({ foreground: value })
- end
-
# Syntactic sugar used with {#align} to left align content.
#
# @return [Symbol]
def left
:left