mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
ff9ccb3e59
commit
416339f3c9
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