Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ruby²Ù×÷Îļþ

require 'app/configuration'
module RubyAMF
  module Configuration
    #set the service path used in all requests
    # RubyAMF::App::RequestStore.service_path = File.expand_path(RAILS_ROOT) + '/app/controllers'

    # => CLASS MAPPING CONFIGURATION
    ClassMappings.register(
      :actionscript  => 'Stock',
      :ruby          => 'Stock',
      :type          => 'active_record',
      :attributes    => ["code", "name"])
    end
end
ClassMappings.register(
      :actionscript  => 'Rolestock',
      :ruby          => 'Rolestock',
      :type          => 'active_record',
      :associations  => ["stock"],
      :attributes    => ["id", "cost", "amount"])


ÉÏÃæËãÊÇÕû¸öÎļþ°É£¬Ö®ºóÎÒÔÚÁíÒ»¸öͬµÈ¼¶Â·¾¶ÎļþÏÂÒª²Ù×÷Õâ¸öÎļþ


  File.open("rubyamf_config.rb") do |file|
    while line = file.gets
 


Ïà¹ØÎÊ´ð£º

£¨¼±£©ruby µ÷ÓÃvcдµÄ¿âÎļþÎÊÌâ

ÎÒ×Ô¼ºÐ´ÁËÒ»¸ö¿âÎļþ£¬¿âÎļþÄÚ²¿Ã»ÎÊÌâ¡£ÎÒÏÖÔÚÏëÓà ruby£¨rpgÀµ÷ÓÃÕâ¸ö¿â£¬ÏÖÔÚÎÊÌâ³öÀ´ÁË£¬±¨´í£¬ËµµÄÊÇGetProcAddress : nSrv or nSrvA  ºÃÏñÊDz»ÄÜÕÒµ½Õâ¸öº¯Êý°É£¬ nSrv ÊÇÎÒ¿âÎļþÀïµÄÒ»¸öº¯ÊýµÄÃû× ......

Ë­ÖªµÀºÃÓõÄRuby IDE£¿

Ë­ÖªµÀºÃÓõÄRuby IDE£¿


·¹ý°ï¶¥

°ï¶¥

cheng_erÄãÕâ¸öÍ·Ïñ±ÈÎҵϹ»Æ°¡.

ÓÑÇéUp£¡~

´¿¶¥

ÒýÓÃ
cheng_erÄãÕâ¸öÍ·Ïñ±ÈÎҵϹ»Æ°¡.


ÕâÄêÍ·,Ææ¹ÖµÄÊÂÇéÔõôÕâô¶àÄØÎÒ¾Í˵
......

Çë½Ì Ruby ´úÂë ת»»³É java´úÂë

Ruby ´úÂëÈçÏ£º
class Array
  def uniq_by
seen = {}
select{ |x|
  v = yield(x)
  !seen[v] && (seen[v]=true)
}
  end
end

Çója ......

[ÒÑÊÜÀí] ¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!

¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
JavascriptÓÐרÀ¸µÄ£ºhttp://forum.csdn.net/SList/JavaScript

×ð¾´µÄÓû§deping_chen£¬ÄúºÃ£º ......

rubyÈçºÎ¸ñʽ»¯Êý×Ö£¿£¨´ÓÓ񱧮ðÿÈýλһ¸ö¶ººÅ¸ô¿ª£©

Êý×Ö´ÓÓ񱧮ðÿÈýλÓÃÒ»¸ö¶ººÅ¸ô¿ª
1232445 ⇒ 1,232,445
---- ChangeStr.rbÄÚÈÝ ------------------------------------------
def change_str(num)
  str = num.to_s
  nil while str. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ