Top Level Namespace

Defined in:

Method Summary

Macro Summary

Method Detail

def what_happen(from, to) : Array(String) #

Tells you what happen from x to y

what_happen(from: false, to: "false")   # => ["to_s", "inspect", "pretty_inspect"]
what_happen(from: 1, to: -1)            # => ["-"]
what_happen(from: {1, 2, 3}, to: 1)     # => ["first", "first?", "min", "min?"]
what_happen(from: {a: 1}, to: {:a})     # => ["keys", "sorted_keys"]
what_happen(from: [1, 2], to: 1)        # => ["first", "first?", "min", "min?"]
what_happen(from: [1, 2, 3], to: 3)     # => ["size", "last", "last?", "max", "max?"]
what_happen(from: "hello", to: "HELLO") # => ["upcase"]
what_happen(from: "Hello", to: "hello") # => ["downcase", "underscore"]

[View source]

Macro Detail

macro generate_what_happen_by_ancestors #

[View source]
macro generate_what_happen_by_self #

[View source]