class Syntax::Command
Attributes
name[R]
result_name[R]
Public Instance Methods
async?()
click to toggle source
# File lib/silicon/routing/syntax/command.rb, line 24 def async? @is_async end
parallel?()
click to toggle source
# File lib/silicon/routing/syntax/command.rb, line 28 def parallel? @is_parallel end
parse()
click to toggle source
# File lib/silicon/routing/syntax/command.rb, line 5 def parse @is_async = text_value.start_with? '=*' @is_parallel = text_value.start_with? '=>' @is_sequential = text_value.start_with? '*>' full_name = text_value.sub('*>', '').sub('=*', '').sub('=>', '') if full_name.include? '@' parts = full_name.split('@') @result_name = parts[0] @name = parts[1] else @result_name = "#{full_name}_result" @name = full_name end self end
sequential?()
click to toggle source
# File lib/silicon/routing/syntax/command.rb, line 32 def sequential? @is_sequential end