Class: Thinreports::BasicReport::Core::Shape::TextBlock::Interface

Inherits:
Basic::BlockInterface show all
Defined in:
lib/thinreports/basic_report/core/shape/text_block/interface.rb

Instance Attribute Summary

Attributes inherited from Base::Interface

#internal

Instance Method Summary collapse

Methods inherited from Basic::BlockInterface

#value, #value=

Methods inherited from Basic::Interface

#hide, #id, #show, #style, #styles, #visible, #visible?

Methods inherited from Base::Interface

#copy, #initialize

Methods included from Utils

#blank_value?, #call_block_in, #deep_copy, included

Constructor Details

This class inherits a constructor from Thinreports::BasicReport::Core::Shape::Base::Interface

Instance Method Details

#format_enabled(enabled) ⇒ self

Parameters:

  • enabled (Boolean)

Returns:

  • (self)


13
14
15
16
# File 'lib/thinreports/basic_report/core/shape/text_block/interface.rb', line 13

def format_enabled(enabled)
  internal.format_enabled(enabled)
  self
end

#set(val, style_settings = {}) ⇒ self

Parameters:

  • val (Object)
  • style_settings (Hash<Symbol, Object>) (defaults to: {})

Returns:

  • (self)


21
22
23
24
# File 'lib/thinreports/basic_report/core/shape/text_block/interface.rb', line 21

def set(val, style_settings = {})
  value(val)
  styles(style_settings) #=> self
end