dsl/method_call_with_symbol_arg.rb

tests/_examples/dsl/method_call_with_symbol_arg.rb in the metorex repository.

puts :boom
puts(:boom)

def have_method(name, include_super = true)
  "matcher for #{name.inspect}"
end

x = have_method(:boom)
puts x

y = have_method :boom
puts y

Output:

boom
boom
matcher for :boom
matcher for :boom