Skip to content

Instantly share code, notes, and snippets.

@Zhomart
Created August 5, 2014 22:57
Show Gist options
  • Save Zhomart/e17a288ff1273cf98825 to your computer and use it in GitHub Desktop.
Save Zhomart/e17a288ff1273cf98825 to your computer and use it in GitHub Desktop.
mxin
# Mixin module
module Chaika
def est_nahyalyavu
puts "Yeah"
end
def shout!
puts "I am a chaika!!!"
end
def zaplatit
raise "no way"
end
end
class Post::House
include Chaika
end
house = Post::House.new
house.shout!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment