Class: Thinreports::Preview::Tblock
- Inherits:
-
Object
- Object
- Thinreports::Preview::Tblock
- Defined in:
- lib/thinreports/preview/tblock.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Tblock
constructor
A new instance of Tblock.
- #name ⇒ Object
- #preview_text(char = 'X') ⇒ Object
Constructor Details
#initialize(config) ⇒ Tblock
Returns a new instance of Tblock.
4 5 6 |
# File 'lib/thinreports/preview/tblock.rb', line 4 def initialize(config) @config = config end |
Instance Method Details
#name ⇒ Object
8 9 10 |
# File 'lib/thinreports/preview/tblock.rb', line 8 def name @config["id"].to_sym end |
#preview_text(char = 'X') ⇒ Object
12 13 14 |
# File 'lib/thinreports/preview/tblock.rb', line 12 def preview_text(char = 'X') char * word_lenght end |