Sha256: aa1f4635ced3b5195487d2b227ddeb54e868e9e25b55e186d3f13ec24ee2b3ac
Contents?: true
Size: 655 Bytes
Versions: 13
Compression:
Stored size: 655 Bytes
Contents
require 'simplabs/excellent/parsing/conditional_context' module Simplabs module Excellent module Parsing class IfContext < ConditionalContext #:nodoc: def initialize(exp, parent) super @contains_assignment = has_assignment? @tests_parameter = contains_parameter? end def tests_assignment? @contains_assignment end def tests_parameter? @tests_parameter end private def has_assignment?(exp = @exp[1]) return false if exp.node_type == :iter super end end end end end
Version data entries
13 entries across 13 versions & 2 rubygems