mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
parent
554418178f
commit
b9f3796977
1 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,8 @@ public final class JrubyTimestampExtLibrary implements Library {
|
|||
}
|
||||
};
|
||||
|
||||
private static final RubyClass TIMESTAMP_CLASS = createTimestamp(RubyUtil.RUBY);
|
||||
|
||||
@Override
|
||||
public void load(Ruby runtime, boolean wrap) {
|
||||
createTimestamp(runtime);
|
||||
|
@ -60,7 +62,7 @@ public final class JrubyTimestampExtLibrary implements Library {
|
|||
}
|
||||
|
||||
public RubyTimestamp(Ruby runtime, Timestamp timestamp) {
|
||||
this(runtime, runtime.getModule(RubyUtil.LS_MODULE_NAME).getClass("Timestamp"), timestamp);
|
||||
this(runtime, TIMESTAMP_CLASS, timestamp);
|
||||
}
|
||||
|
||||
public RubyTimestamp(Ruby runtime) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue