Tim "Fester" Baga ([info]fester_ua) wrote,
@ 2008-04-11 22:59:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Ай хорошо.
Разработчики merb жгут словом и делом:

quacks_like?(duck)
Parameters
duck<symbol, class,="Class," array="Array">: The thing to compare the object to.
Notes

The behavior of the method depends on the type of duck as follows:
Symbol: Check whether the object respond_to?(duck).
Class: Check whether the object is_a?(duck).
Array: Check whether the object quacks_like? at least one of the options in the array.
Returns
Boolean: True if the object quacks like duck.


(Post a new comment)


[info]sad_rascko
2008-04-11 09:30 pm UTC (link)
Он нуллабл?

(Reply to this)(Thread)


[info]fester_ua
2008-04-11 09:33 pm UTC (link)
Мсоре?

(Reply to this)(Parent)(Thread)


[info]sad_rascko
2008-04-11 10:01 pm UTC (link)
Замучен последними сутками игры в "придумай, почему не цепляет сертификат". ? для меня сейчас значения, кроме "может быть null" особо не имеет.

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…