Gigawiki.com
Lar para seus textos
Login:
Senha:
Para logar, você precisa ter o Javascript habilitado.
Busca avançada
Autor:
Título:
Conteúdo:
campo
=
valor
=
!=
<
>
<=
>=
~
=
!=
<
>
<=
>=
~
=
!=
<
>
<=
>=
~
language = English
Internal Frame
2019-01-30
How to run firefox on Docker
2018-01-09
URL: Ranges in Query Strings
2017-03-05
Ruby Coding Style
2015-09-19
Android "Modem log is on the way"
2014-07-25
Unicode hbar for Planck's Constant
2012-07-24
How to show Dropbox Icons in Ubuntu
2012-07-13
Include and Extend
2011-05-10
Two ways to simplify Array blocks in Ruby
2011-03-29
Ruby autoload like in PHP
2011-03-28
Mais...
language = ruby
Include and Extend
2011-05-10
Ruby autoload like in PHP
2011-03-28
attr_reader for class variables
2011-03-23
Trying to understand metaclasses
2011-03-22
Versão mobile
Sete universos nada paralelos
DEUS EXISTE E FUNCIONA!
"Tudo o que com fé pedirdes em oração, recebereis" (Mt 21,22)
Include and Extend
2011-05-10 16:23:02
2011-05-10 16:22:10
Autor:
Sony Santos
(sony)
https://gigawiki.com/sony/include-and-extend
Permalink:
https://gigawiki.com/993
language = English, ruby
[XML]
[Impressão]
[Tuitar]
module Foo
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def bar
puts 'class method'
end
end
def foo
puts 'instance method'
end
end
class Baz
include Foo
end
Please enable JavaScript to view the
comments powered by Disqus.
blog comments powered by
Disqus