Sha256: da5d66afcda1b7b6c834d223deef920d932ec1b2668c973ad88ff69763c9cf23

Contents?: true

Size: 551 Bytes

Versions: 4

Compression:

Stored size: 551 Bytes

Contents

# Sexps from translating Greeter#method_with_and and
# Greeter#method_with_and_result (example_classes.rb)

# before
s(:defn, :method_with_and,
  s(:scope,
    s(:block, s(:args),
      s(:and, s(:ivar, :@hello), s(:true))
    )
  )
)

# after
s(:defn, :method_with_and_result,
  s(:scope,
    s(:block, s(:args),
      s(:fcall, :my_and,
        s(:array,
          s(:iter,
            s(:fcall, :lambda), nil, s(:ivar, :@hello)
          ),
          s(:iter,
            s(:fcall, :lambda), nil, s(:true)
          )
        )
      )
    )
  )
)

Version data entries

4 entries across 4 versions & 1 rubygems

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