Class: Lara::Models::TextBlock
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#translatable ⇒ Object
readonly
Returns the value of attribute translatable.
Instance Method Summary collapse
-
#initialize(text:, translatable: true) ⇒ TextBlock
constructor
A new instance of TextBlock.
Methods inherited from Base
Constructor Details
#initialize(text:, translatable: true) ⇒ TextBlock
Returns a new instance of TextBlock.
10 11 12 13 14 |
# File 'lib/lara/models/text.rb', line 10 def initialize(text:, translatable: true) super() @text = text @translatable = !!translatable end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
8 9 10 |
# File 'lib/lara/models/text.rb', line 8 def text @text end |
#translatable ⇒ Object (readonly)
Returns the value of attribute translatable.
8 9 10 |
# File 'lib/lara/models/text.rb', line 8 def translatable @translatable end |