Class: Thinreports::BasicReport::Core::Shape::Basic::Internal

Inherits:
Thinreports::BasicReport::Core::Shape::Base::Internal show all
Defined in:
lib/thinreports/basic_report/core/shape/basic/internal.rb

Instance Attribute Summary

Attributes inherited from Thinreports::BasicReport::Core::Shape::Base::Internal

#format, #parent, #states

Instance Method Summary collapse

Methods inherited from Thinreports::BasicReport::Core::Shape::Base::Internal

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

Instance Method Details

#identifierObject



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

def identifier
  "#{id}#{style.identifier}"
end

#styleObject



12
13
14
# File 'lib/thinreports/basic_report/core/shape/basic/internal.rb', line 12

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

#type_of?(type_name) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/thinreports/basic_report/core/shape/basic/internal.rb', line 16

def type_of?(type_name)
  [:basic, type].include?(type_name)
end