def greeting(name)
puts "Hello #{name}"
end
greeting("Anna")
{% tabs %} {% tab title="Ruby" %}
def greeting(name)
puts "Hello #{name}"
end
greeting("Anna")
{% endtab %}
{% tab title="Elixir" %}
greeting = fn (name) -> "Hello, #{name}!" end
greeting.("Anna")
{% endtab %} {% endtabs %}
{% code title="greeting.rb" %}
def greeting(name)
puts "Hello #{name}"
end
greeting("Anna")
{% endcode %}