Skip to content

Commit

Permalink
add strict? to java version
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Feb 21, 2012
1 parent 2af6cfb commit 953d484
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/ruby_http_parser/org/ruby_http_parser/RubyHttpParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@

public class RubyHttpParser extends RubyObject {

@JRubyMethod(name = "strict?", module = true)
public static IRubyObject strict(IRubyObject recv) {
return recv.getRuntime().newBoolean(true);
}

public static ObjectAllocator ALLOCATOR = new ObjectAllocator() {
public IRubyObject allocate(Ruby runtime, RubyClass klass) {
return new RubyHttpParser(runtime, klass);
Expand Down

0 comments on commit 953d484

Please sign in to comment.