Sha256: 2d1365e3adb453ea879289ef8bab60b92dc5022d38264e757866523f819e753b

Contents?: true

Size: 341 Bytes

Versions: 8

Compression:

Stored size: 341 Bytes

Contents

module AmCharts
  class Legend
    attr_reader :settings, :listeners

    def initialize(&block)
      @settings = Settings.new
      @listeners = Collection[Listener]
      instance_exec(self, &block) if block_given?
    end

  private

    def method_missing(name, *args, &block)
      @settings.send(name, *args, &block)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
amcharts.rb-3.11.2.17 lib/amcharts/legend.rb
amcharts.rb-3.11.2.16 lib/amcharts/legend.rb
amcharts.rb-3.11.2.14 lib/amcharts/legend.rb
amcharts.rb-3.11.1.14 lib/amcharts/legend.rb
amcharts.rb-3.4.8.0 lib/amcharts/legend.rb
amcharts.rb-3.4.7.5 lib/amcharts/legend.rb
amcharts.rb-3.4.7.4 lib/amcharts/legend.rb
amcharts.rb-3.4.7.3 lib/amcharts/legend.rb