Method: JRuby::Lint::Checkers::System#red_flag?
- Defined in:
- lib/jruby/lint/checkers/system.rb
#red_flag?(node) ⇒ Boolean
Defines red_flag when argument matches ruby
28 29 30 31 |
# File 'lib/jruby/lint/checkers/system.rb', line 28 def red_flag?(node) first_arg = node.args_node.child_nodes.first first_arg && first_arg.node_type.to_s == "STRNODE" && ruby_executable?(first_arg) end |