class Lucid::AST::StepInvocation::Keywords
Attributes
language[R]
Public Class Methods
new(language)
click to toggle source
# File lib/lucid/ast/step_invocation.rb, line 144 def initialize(language) @language = language end
Public Instance Methods
repeat_keyword?(keyword)
click to toggle source
# File lib/lucid/ast/step_invocation.rb, line 148 def repeat_keyword?(keyword) repeat_keywords.index(keyword) end
star_code_keyword()
click to toggle source
# File lib/lucid/ast/step_invocation.rb, line 152 def star_code_keyword language.code_keywords.reject { |k| repeat_keywords.map(&:strip).include?(k) }.first end
Private Instance Methods
repeat_keywords()
click to toggle source
# File lib/lucid/ast/step_invocation.rb, line 161 def repeat_keywords rubify([language.keywords('but'), language.keywords('and')]).flatten.uniq.reject{|kw| kw == '* '} end