lib/vedeu/borders/dsl.rb in vedeu-0.6.48 vs lib/vedeu/borders/dsl.rb in vedeu-0.6.49
- old
+ new
@@ -231,13 +231,14 @@
# produces, depending on other customisations:
#
# +- My Cool Title --------------------------------+
#
# @param value [String] The title.
- # @return [String]
+ # @return [Vedeu::Borders::Title]
def title(value)
model.title = value
+ model.title
end
alias_method :title=, :title
# If you have you are showing a bottom border, you could add a
# caption.
@@ -250,12 +251,13 @@
# produces, depending on other customisations:
#
# +------------------------------ My Cool Caption -+
#
# @param value [String] The caption.
- # @return [String]
+ # @return [Vedeu::Borders::Caption]
def caption(value)
model.caption = value
+ model.caption
end
alias_method :caption=, :caption
# Enable/disable the top border.
#