Development

rubyコード:
require ‘Win32API’

def getch
@getch ||= Win32API.new(‘crtdll’, ‘ ...

Development

rubyコード:
class String
def rot13
self.tr “A-Za-z”, “N-ZA-Mn-za-m”
end
end ...

Development

rubyコード:
data =
s = ‘ ‘
data.each { |x| s << x << ‘ and a ‘ }
s # => “1 and a 2 and a ...

Development

rubyコード:
require ‘spreadsheet’
# スプレッドシートファイルを作成する
@selectedevent=Event.find_by_id(params) ...

Development

rubyコード:
require ‘rubygems’
require ‘soap/wsdlDriver’

url = “
client ...

Development

rubyコード:
#gem install net-ssh
#gem install net-sftp

require ‘rubygems’
require ‘n ...

Development

rubyコード:

require ‘Win32API’

title = “アプリケーションのテスト”
text = “こんにちは、東京R ...

Development

rubyコード:
require ‘win32ole’

ChartTypeVal = 4100;
excel = WIN32OLE.new(“excel.applicat ...

Development

rubyコード:
require ‘win32ole’

excel = WIN32OLE.new(“excel.application”)
excel.Wor ...

Development

rubyコード:
require “win32ole”

sound = WIN32OLE.new(“MCI.MMcontrol”)

wav = ̶ ...

Development

rubyコード:
require “win32ole”

cd = WIN32OLE.new(“MSComDlg.CommonDialog”)

cd.fil ...

Development

rubyコード:
#ruby1.8.x以上
require ‘Win32API’

#API GetCursorPosとSetCursorPosのインターフェースを定義する
g ...

Development

rubyコード:
require ‘yaml’

h = {}
h = “Robert”
h = “Bob”
h = 4 ...

Development

rubyコード:
require ‘yaml’
class Special
def initialize(valuable, volatile, precious)
@valua ...

Development

rubyコード:
xml = %{
<aquarium>
<fish color=”blue” size=”small”/>
&l ...

Development

rubyコード:
require ‘yaml’

class Person
attr_accessor :name, :age
end

fred = Person. ...

Development

rubyコード:
result = “0”*8 # 8バイト (enough for two longs)
getCursorXY = Win32API.new(“user32 ...

Development

rubyコード:
require “Win32API”

def system(cmd)
sys = Win32API.new(“crtdll”, “ ...