Class: XLSSestavy::DefiniceSloupcu
- Inherits:
-
Object
- Object
- XLSSestavy::DefiniceSloupcu
- Defined in:
- lib/xls_sestavy/tabulky/sloupce/definice_sloupcu.rb
Class Method Summary collapse
Instance Method Summary collapse
- #[](klic) ⇒ Object
-
#definice ⇒ Object
tato metoda bude přepsána.
- #definuj(*args, &block) ⇒ Object
-
#initialize ⇒ DefiniceSloupcu
constructor
A new instance of DefiniceSloupcu.
Constructor Details
#initialize ⇒ DefiniceSloupcu
Returns a new instance of DefiniceSloupcu.
10 11 12 13 |
# File 'lib/xls_sestavy/tabulky/sloupce/definice_sloupcu.rb', line 10 def initialize @seznam = {} definice end |
Class Method Details
.[](klic) ⇒ Object
5 6 7 8 |
# File 'lib/xls_sestavy/tabulky/sloupce/definice_sloupcu.rb', line 5 def self.[](klic) @instance ||= new @instance[klic] end |
Instance Method Details
#[](klic) ⇒ Object
22 23 24 |
# File 'lib/xls_sestavy/tabulky/sloupce/definice_sloupcu.rb', line 22 def [](klic) @seznam[klic] end |
#definice ⇒ Object
tato metoda bude přepsána
15 |
# File 'lib/xls_sestavy/tabulky/sloupce/definice_sloupcu.rb', line 15 def definice; end |
#definuj(*args, &block) ⇒ Object
17 18 19 20 |
# File 'lib/xls_sestavy/tabulky/sloupce/definice_sloupcu.rb', line 17 def definuj(*args, &block) s = PreddefinovanySloupec.new(*args, &block) @seznam[s.klic] = s end |