class Datatable::Runner
Constants
- ERROR_MESSAGE
- MESSAGE
Public Class Methods
new(options)
click to toggle source
# File lib/datatable/runner.rb, line 25 def initialize(options) @options = options end
Public Instance Methods
execute()
click to toggle source
# File lib/datatable/runner.rb, line 29 def execute raise MESSAGE if @options[0] == 'h' raise ERROR_MESSAGE unless valid? Datatable::Generator.new(@options[1]).up end
valid?()
click to toggle source
# File lib/datatable/runner.rb, line 35 def valid? # first option should always be up return false if @options[0] != 'g' true end