Embedded Code

Input:

#Code id=Foo syntax=ruby <<---
class Foo
    # Return two times x
    def bar(x)
        x * 2
    end
end
---

Output:

class Foo
    # Return two times x
    def bar(x)
        x * 2
    end
end