Class: Thinreports::BasicReport::Core::Shape::Basic::BlockInterface

Inherits:
Interface show all
Defined in:
lib/thinreports/basic_report/core/shape/basic/block_interface.rb

Direct Known Subclasses

ImageBlock::Interface, TextBlock::Interface

Instance Attribute Summary

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

#internal

Instance Method Summary collapse

Methods inherited from Interface

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

Methods inherited from Thinreports::BasicReport::Core::Shape::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

#value(val) ⇒ self #valueObject

Overloads:

  • #value(val) ⇒ self

    Set a val

    Parameters:

    • val (Object)

    Returns:

    • (self)
  • #valueObject

    Return the value

    Returns:

    • (Object)


16
17
18
19
20
21
22
23
# File 'lib/thinreports/basic_report/core/shape/basic/block_interface.rb', line 16

def value(*args)
  if args.empty?
    internal.read_value
  else
    internal.write_value(args.first)
    self
  end
end

#value=(val) ⇒ Object

Parameters:

  • val (Object)


26
27
28
# File 'lib/thinreports/basic_report/core/shape/basic/block_interface.rb', line 26

def value=(val)
  value(val)
end