Class: Markdownplus::Julia::DataFrameHandler
- Inherits:
-
Handler
- Object
- Handler
- Markdownplus::Julia::DataFrameHandler
- Defined in:
- lib/markdownplus/julia.rb
Defined Under Namespace
Classes: DataFrame
Instance Method Summary collapse
Instance Method Details
#execute(input, parameters, variables, warnings, errors) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/markdownplus/julia.rb', line 48 def execute(input, parameters, variables, warnings, errors) name = nil csv = nil if parameters==nil || parameters.count < 2 errors << "Two parameters are required" else warnings << "More than two variables given" if parameters.count > 2 name = parameters[0].to_s csv = parameters[1].to_s end DataFrame.new(name, csv) end |