Class: Thinreports::BasicReport::Core::Shape::Base::Interface Abstract

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Utils
Defined in:
lib/thinreports/basic_report/core/shape/base/interface.rb

Overview

This class is abstract.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils

#blank_value?, #call_block_in, #deep_copy, included

Constructor Details

#initialize(parent, format, internal = nil) ⇒ Interface

Returns a new instance of Interface.



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

def initialize(parent, format, internal = nil)
  @internal = internal || init_internal(parent, format)
end

Instance Attribute Details

#internalObject (readonly)

Returns the value of attribute internal.



18
19
20
# File 'lib/thinreports/basic_report/core/shape/base/interface.rb', line 18

def internal
  @internal
end

Instance Method Details

#copy(parent) ⇒ Object



24
25
26
# File 'lib/thinreports/basic_report/core/shape/base/interface.rb', line 24

def copy(parent)
  self.class.new(parent, internal.format, internal.copy(parent))
end