class Addressable::Template
def extract_opt_operator(
-
(String)
- The extracted result.
Parameters:
-
mapping
(Hash
) -- The mapping of variables to values. -
variables
(Array
) -- The variables the operator is working on. -
argument
(String
) -- The argument to the operator. -
processor
(#restore
) -- The processor object. -
value
(String
) -- The unparsed value to extract from.
def extract_opt_operator( value, processor, argument, variables, mapping) if value != "" && value != argument raise TemplateOperatorAbortedError, "Value for template operator 'opt' was unexpected." end end