Class: Locomotive::Steam::Liquid::Tags::Editable::ShortText

Inherits:
Text
  • Object
show all
Defined in:
lib/locomotive/steam/liquid/tags/editable/text.rb

Direct Known Subclasses

LongText

Constant Summary

Constants inherited from Base

Base::Syntax

Instance Attribute Summary

Attributes inherited from Base

#slug

Instance Method Summary collapse

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, options)
   Locomotive::Common::Logger.warn %(The "#{tag_name}" liquid tag is deprecated. Use "editable_text" instead.).yellow
  super
end

Instance Method Details

#default_element_attributesObject



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