lib/litexbrl/tdnet/summary.rb in litexbrl-0.0.1 vs lib/litexbrl/tdnet/summary.rb in litexbrl-0.0.2
- old
+ new
@@ -14,11 +14,16 @@
'tse-t-ed' => 'http://www.xbrl.tdnet.info/jp/br/tdnet/t/ed/2007-06-30'
}
class << self
def parse(path)
- doc = File.open(path) {|f| Nokogiri::XML(f) }
- read(doc)
+ doc = File.open(path) {|f| Nokogiri::XML f }
+ read doc
+ end
+
+ def parse_string(str)
+ doc = Nokogiri::XML str
+ read doc
end
private
def read(doc)
\ No newline at end of file