Ruby
grep しても File.new や FileSaver.new がないと思ったが、色々見てみたら分かったlib/mechanize/file.rb class File ... def initialize(uri=nil, response=nil, body=nil, code=nil) ... lib/mechanize/file_saver.rb class FileSaver < File ... def ini…
>> require 'mechanize' => true >> agent = Mechanize.new => #<Mechanize:0xb74cc234 ... >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').class => Mechanize::File >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').filen</mechanize:0xb74cc234>…
>> require 'mechanize' => true >> agent = Mechanize.new => #<Mechanize:0xb73f417c ... >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').class => Mechanize::File >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').code </mechanize:0xb73f417c>…
>> require 'mechanize' => true >> agent = Mechanize.new => #<Mechanize:0xb74cf22c ... >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').class => Mechanize::File >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').body </mechanize:0xb74cf22c>…
>> require 'mechanize' => true >> agent = Mechanize.new => #<Mechanize:0xb74c522c ... >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').class => Mechanize::File >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').respo</mechanize:0xb74c522c>…
>> require 'mechanize' => true >> agent = Mechanize.new => #<Mechanize:0xb743b234 ... >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').class => Mechanize::File >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').uri =</mechanize:0xb743b234>…
inspect.rb で pp が読み込まれているや〜 >> require 'mechanize' => true >> PP => PP
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
MultiSelectList から継承しているようだ以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select></form></body></html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>
以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>