module Thinreports::Core::Shape
Public Class Methods
Format(type)
click to toggle source
# File lib/thinreports/core/shape.rb, line 10 def Format(type) find_by_type(type)::Format end
Interface(parent, format)
click to toggle source
# File lib/thinreports/core/shape.rb, line 6 def Interface(parent, format) find_by_type(format.type)::Interface.new(parent, format) end
find_by_type(type)
click to toggle source
# File lib/thinreports/core/shape.rb, line 16 def self.find_by_type(type) case type when TextBlock::TYPE_NAME then TextBlock when ImageBlock::TYPE_NAME then ImageBlock when List::TYPE_NAME then List when StackView::TYPE_NAME then StackView when Text::TYPE_NAME then Text when PageNumber::TYPE_NAME then PageNumber when *Basic::TYPE_NAMES then Basic else raise Thinreports::Errors::UnknownShapeType end end
Private Instance Methods
Format(type)
click to toggle source
# File lib/thinreports/core/shape.rb, line 10 def Format(type) find_by_type(type)::Format end
Interface(parent, format)
click to toggle source
# File lib/thinreports/core/shape.rb, line 6 def Interface(parent, format) find_by_type(format.type)::Interface.new(parent, format) end