Class: Markdownplus::SetHandler
- Defined in:
- lib/markdownplus/handler.rb
Overview
START VARIABLES ###
Instance Method Summary collapse
Instance Method Details
#execute(input, parameters, variables, warnings, errors) ⇒ Object
89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/markdownplus/handler.rb', line 89 def execute(input, parameters, variables, warnings, errors) if parameters==nil errors << "No variable name given" elsif parameters.count == 0 errors << "No variable name given" else warnings << "More than one variable name given [#{parameters.inspect}]" if parameters.count > 1 variables[parameters.first.to_s] = input end input end |