Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
ruby_poznamky [2019/12/29 17:04] rootruby_poznamky [2019/12/29 17:32] root
Line 5: Line 5:
  
 class  << self  - vytvoří singleton class, která v případě self přidá slass metody class  << self  - vytvoří singleton class, která v případě self přidá slass metody
 +
 +
 +def do_something
 +   yield if block_given?
 +end
 </code> </code>
 
ruby_poznamky.txt · Last modified: 2019/12/29 17:32 (external edit)