Class: XLSSestavy::Tabulka
- Inherits:
-
Object
- Object
- XLSSestavy::Tabulka
- Defined in:
- lib/xls_sestavy/tabulky/tabulka.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#promenne ⇒ Object
readonly
Returns the value of attribute promenne.
-
#sestava ⇒ Object
readonly
Returns the value of attribute sestava.
Instance Method Summary collapse
-
#initialize(sestava, args = {}) {|_self| ... } ⇒ Tabulka
constructor
A new instance of Tabulka.
- #promenna(klic, &block) ⇒ Object
- #sloupec(*args, &block) ⇒ Object
Constructor Details
#initialize(sestava, args = {}) {|_self| ... } ⇒ Tabulka
Returns a new instance of Tabulka.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/xls_sestavy/tabulky/tabulka.rb', line 7 def initialize(sestava, args={}, &block) @sestava = sestava @args = args @sloupce = args[:sloupce] || [] @promenne = args[:promenne] yield self if block_given? @sloupce.each{|s| s.tabulka = self} @promenne.pro_tabulku self if @promenne end |
Instance Attribute Details
#promenne ⇒ Object (readonly)
Returns the value of attribute promenne.
5 6 7 |
# File 'lib/xls_sestavy/tabulky/tabulka.rb', line 5 def promenne @promenne end |
#sestava ⇒ Object (readonly)
Returns the value of attribute sestava.
5 6 7 |
# File 'lib/xls_sestavy/tabulky/tabulka.rb', line 5 def sestava @sestava end |
Instance Method Details
#promenna(klic, &block) ⇒ Object
30 31 32 33 |
# File 'lib/xls_sestavy/tabulky/tabulka.rb', line 30 def promenna(klic, &block) @promenne ||= PromenneRadku.new @promenne.nastav klic, &block end |