Module: Vedeu::DSL::Text
- Included in:
- Line, Stream, View, Interfaces::DSL
- Defined in:
- lib/vedeu/dsl/text.rb
Overview
Provides helper methods for building views.
Instance Method Summary collapse
-
#text(value = '', options = {}) ⇒ String
(also: #text=, #align, #center, #centre, #left, #right, #align=, #center=, #centre=, #left=, #right=)
Specify the content for a view.
Instance Method Details
#text(value = '', options = {}) ⇒ String Also known as: text=, align, center, centre, left, right, align=, center=, centre=, left=, right=
Note:
If using the convenience methods; left, centre, center or right, then a specified anchor will be ignored.
Specify the content for a view. Provides the means to align a string (or object responding to ‘to_s`), and add it as a Line or to the Stream.
66 67 68 69 70 |
# File 'lib/vedeu/dsl/text.rb', line 66 def text(value = '', = {}) .merge!(anchor: __callee__, model: model, client: client) Vedeu::Output::Text.add(value, ) end |