Rubyistに 不足しているのは会計(そろばん)!
Upcoming SlideShare
Loading in...5
×
 

Rubyistに 不足しているのは会計(そろばん)!

on

  • 683 views

RubyKaigi2011 7.18 LT

RubyKaigi2011 7.18 LT

Statistics

Views

Total Views
683
Views on SlideShare
683
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Rubyistに 不足しているのは会計(そろばん)! Rubyistに 不足しているのは会計(そろばん)! Presentation Transcript

  • Rubyist ( ) iRubySystems @iR3 at 2011.7.18 RubyKaigi LT2011 7 19
  • @iR3 ↓ 2010.11.6 Ruby http://www.slideshare.net/FUKUIOsamu/20101106-ramaze FA eTax XBRL XBRL .... XBRL2011 7 19
  • • Rubyist Rubyist should study accounting. Take the leadership beyond worker. • Ruby IFRS XBRL GL If you use Ruby on IFRS System for XBRL GL you will win! • XBRL nokogiri The nokogiri is best tool for XBRL handling. And my recursive method.2011 7 19
  • 2011 7 19
  • Account , ■ 11 July 16-18 20112011 7 19
  • You must stand up to2011 7 19
  • A long time ago Now IT Accounting2011 7 19
  • 2011 7 19
  • 2011 7 19
  • 2011 7 19
  • Balance sheet(B/S) Profit and Loss statement(P/L) :2011.3.31 :2010.4.1 2011.3.312011 7 19
  • Balance sheet(B/S) Profit and Loss statement(P/L)2011 7 19
  • 2011 7 19
  • by IFRS P/L B/S2011 7 19
  • IFRS2011 7 19
  • IFRS XBRL eXtensible Business Reporting Language XML2011 7 19
  • 2 XBRL • XBRL FR XBRL GL • XBRL FR Financial Reporting • XBRL GL Global Ledger Framework RECOMMENDATION2011 7 19
  • XBRL FR GL EDINET TDnet FR e-Tax XBRL GL XML2011 7 19
  • XBRL GL XBRL GL2011 7 19
  • XBRL GL2011 7 19
  • XBRL XBRL 2 XML2011 7 19
  • 2011 7 19
  • 2011 7 19
  • XML Schema Schema: XML Schema XML <schema xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:gl-plt="http://www.xbrl.org/int/gl/plt/2010-04-12" elementFormDefault="qualified" targetNamespace="http://www.xbrl.org/int/gl/plt/2010-04-12" attributeFormDefault="unqualified"> </schema>2011 7 19
  • annotation: <annotation> <appinfo> <link:linkbaseRef xlink:type="simple" xlink:href="../../cor/lang/gl-cor-2010-04-12-label.xml" xlink:title="Label Links, all" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"/> <link:linkbaseRef xlink:type="simple" xlink:href="../../cor/lang/gl-cor-2010-04-12-label-ja.xml" xlink:title="Label Links, ja" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"/> </appinfo> </annotation>2011 7 19
  • XML XML nokogiri http://nokogiri.org/ https://github.com/tenderlove/nokogiri install sudo gem install nokogiri2011 7 19
  • require rubygems require nokogiri @doc = Nokogiri::XML(open("http://www.xbrl.org/ taxonomy/int/gl/2010-04-12/cor/lang/gl- cor-2010-04-12-label-ja.xml")) puts "@doc class : #{@doc.class}" puts "@doc : #{@doc}"2011 7 19
  • XPath nokogiri XPath XML Path Language  XPath; XML http://ja.wikipedia.org/wiki/XML_Path_Language2011 7 19
  • <?xml version="1.0" encoding="utf-8"?> <document> <!-- XML --> <chapter title=" 1 "> <paragraph> </paragraph> <paragraph> </paragraph> <paragraph> </paragraph> <paragraph> </paragraph> </chapter> <chapter title=" 2 "> <paragraph> </paragraph> </chapter> </document>2011 7 19
  • XPath /document : document ■ /* : document XML ■ /document/chapter : document chapter ■ /document/chapter[1] : document 1 chapter ■ //paragraph : paragraph ■ //chapter[@title=" 1 "]/paragraph : title " 1 " chapter paragraph2011 7 19
  • nokogiri Thank you tenderlove !2011 7 19
  • XML http://d.hatena.ne.jp/iR3/20060428#1146221233 # DB def getchild( db, gr_id ) out = "" # sql = "select gr_id,gr_name from grlist where sgr_id=#{gr_id}" rows = db.query(sql) rows.each_with_index{ |row,i| gr_id1 = row[0] gr_name = row[1] out << "<#{gr_name} data=#{gr_id}>" out << "rn" if gr_id != gr_id1 out << getchild(db, gr_id1) end out << "</#{gr_name} >" out << "rn" } return out end2011 7 19
  • 2011 7 19
  • • Rubyist Rubyist should study accounting. Take the leadership beyond worker. • Ruby IFRS XBRL GL If you use Ruby on IFRS System for XBRL GL you will win! • XBRL nokogiri The nokogiri is best tool for XBRL handling. And my recursive method.2011 7 19