2011-09-09 20:44:38 +04:00
|
|
|
# -*- coding: utf-8 -*-
|
2004-02-14 05:28:02 +03:00
|
|
|
=begin
|
|
|
|
distributed Ruby --- dRuby Sample Client -- chasen client
|
2011-05-15 15:55:52 +04:00
|
|
|
Copyright (c) 1999-2001 Masatoshi SEKI
|
2004-02-14 05:28:02 +03:00
|
|
|
=end
|
|
|
|
|
|
|
|
require 'drb/drb'
|
|
|
|
|
|
|
|
there = ARGV.shift || raise("usage: #{$0} <server_uri>")
|
|
|
|
DRb.start_service
|
|
|
|
dhasen = DRbObject.new(nil, there)
|
|
|
|
|
2011-09-08 20:24:43 +04:00
|
|
|
print dhasen.sparse("本日は、晴天なり。", "-F", '(%BB %m %M)\n', "-j")
|
|
|
|
print dhasen.sparse("本日は、晴天なり。", "-F", '(%m %M)\n')
|