Class: Thinreports::BasicReport::Core::Shape::List::SectionInternal

Inherits:
Base::Internal
  • Object
show all
Defined in:
lib/thinreports/basic_report/core/shape/list/section_internal.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Internal

#format, #parent, #states

Instance Method Summary collapse

Methods inherited from Base::Internal

#copy, #initialize, #type_of?

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::Internal

Instance Attribute Details

#section_nameSymbol

Returns:

  • (Symbol)


13
14
15
# File 'lib/thinreports/basic_report/core/shape/list/section_internal.rb', line 13

def section_name
  @section_name
end

Instance Method Details

#move_top_to(ry) ⇒ Object

Parameters:

  • ry (Numeric)


20
21
22
# File 'lib/thinreports/basic_report/core/shape/list/section_internal.rb', line 20

def move_top_to(ry)
  states[:relative_top] = ry
end

#relative_topFloat

Returns:

  • (Float)


25
26
27
# File 'lib/thinreports/basic_report/core/shape/list/section_internal.rb', line 25

def relative_top
  states[:relative_top] || 0
end

#styleObject



15
16
17
# File 'lib/thinreports/basic_report/core/shape/list/section_internal.rb', line 15

def style
  @style ||= Style::Base.new(format)
end