Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # WARNING:
- # Horrible things happening here for development reasons.
- # Do not leave this in.
- require 'colorize'
- module Zing
- module PlayerRecommender
- class Todo
- def self.warn
- str ||= ''
- caller_locations(2, 1).first.tap do |loc|
- puts "#{loc.label}".green.bold + " mocked but not implemented!!!!111:".red.bold
- puts " #{loc.path}:#{loc.lineno}".red
- end
- end
- end
- end
- end
- class Object
- def fake_return(output)
- Zing::PlayerRecommender::Todo.warn
- return output
- end
- def self.fake_return(output)
- Zing::PlayerRecommender::Todo.warn
- return output
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement