Class: Locomotive::Steam::Liquid::Tags::Editable::ShortText
Direct Known Subclasses
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #default_element_attributes ⇒ Object
-
#initialize(tag_name, markup, options) ⇒ ShortText
constructor
A new instance of ShortText.
Methods inherited from Base
#blank?, #default_render, #parse, #render
Constructor Details
#initialize(tag_name, markup, options) ⇒ ShortText
Returns a new instance of ShortText.
66 67 68 69 |
# File 'lib/locomotive/steam/liquid/tags/editable/text.rb', line 66 def initialize(tag_name, markup, ) Locomotive::Common::Logger.warn %(The "#{tag_name}" liquid tag is deprecated. Use "editable_text" instead.).yellow super end |
Instance Method Details
#default_element_attributes ⇒ Object
70 71 72 |
# File 'lib/locomotive/steam/liquid/tags/editable/text.rb', line 70 def default_element_attributes super.merge(format: 'raw', rows: 2, line_break: false, inline: true) end |