Class: CML::Tags::MultipleText
- Defined in:
- lib/cml/tags/multiple_text.rb
Constant Summary
Constants inherited from Text
Text::BareTemplate, Text::Template
Constants included from CML::TagLogic
CML::TagLogic::And, CML::TagLogic::AndPhraseExp, CML::TagLogic::CombinatorDefault, CML::TagLogic::CombinatorDict, CML::TagLogic::CombinatorExp, CML::TagLogic::GroupExp, CML::TagLogic::Or, CML::TagLogic::OrCombinatorExp, CML::TagLogic::PrecedenceRegexp, CML::TagLogic::TokenExp, CML::TagLogic::TokenRegexp
Instance Attribute Summary
Attributes inherited from CML::Tag
#attrs, #cml, #data, #opts, #tag
Attributes included from CML::TagLogic
#errors, #has_grouped_logic, #has_liquid_logic, #logic_tree
Instance Method Summary collapse
-
#initialize(cml, opts) ⇒ MultipleText
constructor
A new instance of MultipleText.
Methods inherited from Text
Methods inherited from CML::Tag
#cacheable?, #children, #classes, #convert, #ensure_resolved, #finite_value?, #gold=, #gold?, #gold_class, #gold_reason, #instructions, #iterating?, #label, #legend, memoize, #multi_type, #name, #parent_multiples, #prefix, #preloaded_data, #raw_label, #to_html, #to_liquid, #to_s, #validate?, #validations, #validators, #value, #wrapper, #wrapper_classes
Methods included from CML::TagLogic
#dependencies_on_fields, #dependencies_through_cml_group, #depends_on_fields, #describe_logic_token, #detect_grouped_logic, #detect_liquid_logic, #each_logic_token_in, #expand_logic, #expand_parsed_expression, #in_logic_graph?, #keep_merge!, #only_if, parse_expression, resolve_combinator
Constructor Details
#initialize(cml, opts) ⇒ MultipleText
Returns a new instance of MultipleText.
5 6 7 8 |
# File 'lib/cml/tags/multiple_text.rb', line 5 def initialize(cml, opts) cml = cml.to_xml unless cml.is_a?(String) super(cml.sub(/multiple_text/, "text multiple=\"true\""), opts) end |