# frozen_string_literal: false require 'win32ole' # -4100 is the value for the Excel constant xl3DColumn. ChartTypeVal = -4100; # Creates OLE object to Excel excel = WIN32OLE.new("excel.application") # Create and rotate the chart excel.visible = true; excel.Workbooks.Add(); excel.Range("a1").value = 3; excel.Range("a2").value = 2; excel.Range("a3").value = 1; excel.Range("a1:a3").Select(); excelchart = excel.Charts.Add(); excelchart.type = ChartTypeVal; i = 0 i.step(180, 10) do |rot| excelchart.rotation=rot; sleep 0.1 end # Done, bye print "Now quit Excel... Please enter." gets excel.ActiveWorkbook.Close(0); excel.Quit(); er'>master The Ruby Programming Language
summaryrefslogtreecommitdiff
path: root/.document
AgeCommit message (Collapse)Author
2023-05-27[DOC] No document under win32Nobuyoshi Nakada
Also .document was removed at 57bc4cfa283582f7c4c7013bb8a979e0baf3236c.
2023-03-06s/mjit/rjit/Takashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462
2022-12-22Document the public interface of YJIT [ci skip]Takashi Kokubun
2022-12-22Polish the public docs for MJIT [ci skip]Takashi Kokubun
Now every private interface is cleaned up, and the public interface is documented.
2022-11-15Rewrite Symbol#to_sym and #intern in Ruby (#6683)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-08-02Implement Queue#pop(timeout: sec)Jean Boussier
[Feature #18774] As well as `SizedQueue#pop(timeout: sec)` If both `non_block=true` and `timeout:` are supplied, ArgumentError is raised. Notes: Merged: https://github.com/ruby/ruby/pull/6185
2022-05-11Improve documentation on contributing to RubyJemma Issroff
co-authored-by: Peter Zhu <peter@peterzhu.ca> co-authored-by: Stan Lo <stan001212@gmail.com> Notes: Merged: https://github.com/ruby/ruby/pull/5899
2022-04-07All-in-one RDoc for class String (#5777)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>