Method: Chitin::Builtins::Aliases#p
- Defined in:
- lib/chitin/commands/builtins.rb
#p(*args) ⇒ Object
181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/chitin/commands/builtins.rb', line 181 def p(*args) args.map do |arg| if Runnable === arg puts arg[:inspect] else puts arg.inspect end end # i know puts returns nil and p returns the object, but this is to # emphasize the fact that we want it to return nil. also, so that # we don't accidentally run a Runnable while inspecting it nil end |