Sha256: bc6c1d681c95de2a3179d72f9e67ec5a9325b9f73bce1037ecd8e1b7704c8e6b

Contents?: true

Size: 826 Bytes

Versions: 4

Compression:

Stored size: 826 Bytes

Contents

# before
s(:defn, :greet_if_else,
  s(:scope,
    s(:block, s(:args),
      s(:if,
        s(:ivar, :@hello),
        s(:str, "Hello World! (if else)"),
        s(:call, s(:str, "Good"), :+, s(:array, s(:str, "bye (if else)")))
      )
    )
  )
)

#after
s(:defn, :greet_changed,
  s(:scope,
    s(:block, s(:args),
      s(:call,
        s(:colon2,
          s(:const, :VirtualKeywords),
          :REWRITTEN_KEYWORDS
        ),
        :call_if,
          s(:array,
            s(:self),
            s(:iter, s(:fcall, :lambda), nil, s(:ivar, :@hello)),
            s(:iter, s(:fcall, :lambda), nil, s(:str, "Hello World! (if else)")),
            s(:iter,
              s(:fcall, :lambda),
              nil, s(:call, s(:str, "Good"), :+, s(:array, s(:str, "bye (if else)")))
            )
          )
      )
    )
  )
)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
virtual_keywords-0.3.1 lib/sexps/sexps_rewritten_keywords.rb
virtual_keywords-0.3.0 lib/sexps/sexps_rewritten_keywords.rb
virtual_keywords-0.1.0 lib/sexps/sexps_rewritten_keywords.txt
virtual_keywords-0.0.0 lib/sexps/sexps_rewritten_keywords.txt