Sha256: 551cc004b2774d8724055240c5b17dda6457deae56545bf5da8a0bbd92adb7df
Contents?: true
Size: 874 Bytes
Versions: 3
Compression:
Stored size: 874 Bytes
Contents
# Before translation # Ok, so each s(:when) has 2 elements: the condition and the consequence # They're not wrapped in an array or anything, so this is a lot more # complicated... s(:defn, :describe_value, s(:scope, s(:block, s(:args), s(:case, s(:ivar, :@value), s(:when, s(:array, s(:lit, 1)), s(:lit, :one) ), s(:when, s(:array, s(:lit, 3..5)), s(:lit, :three_to_five) ), s(:when, s(:array, s(:lit, 7), s(:lit, 9)), s(:lit, :seven_or_nine) ), s(:when, s(:array, s(:call, s(:call, s(:vcall, :value), :*, s(:array, s(:lit, 10))), :<, s(:array, s(:lit, 90)) ) ), s(:lit, :passes_multiplication_test) ), s(:lit, :something_else) ) ) ) )
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
virtual_keywords-0.3.1 | lib/sexps/sexps_case_when.rb |
virtual_keywords-0.3.0 | lib/sexps/sexps_case_when.rb |
virtual_keywords-0.1.0 | lib/sexps/sexps_case_when.txt |