Sha256: fbe57706f07278739334e32274b5d0a4d58715e9ac1c0d70f855c748754f9535

Contents?: true

Size: 452 Bytes

Versions: 16

Compression:

Stored size: 452 Bytes

Contents

const Command = require('./Command')
const CommandType = require('./CommandType')
class ExplicitCast {
  static cast(value, targetType) {
      return new Command(
            100,
            CommandType.Cast,
            [
                value,
                new Command(
                    100,
                    CommandType.GetType,
                    [targetType]
                )
            ]
      )
  }
}

module.exports = ExplicitCast

Version data entries

16 entries across 8 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.1.4 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.1.4 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.1.3 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.1.3 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.1.2 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.1.2 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.1.1 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.1.1 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.1.0 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.1.0 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.0.4 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.0.4 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/utils/ExplicitCast.js
javonet-ruby-sdk-2.0.1 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/src/utils/ExplicitCast.js
javonet-ruby-sdk-2.0.1 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/src/utils/ExplicitCast.js
javonet-ruby-sdk-2.0.0 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/src/utils/ExplicitCast.js
javonet-ruby-sdk-2.0.0 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/src/utils/ExplicitCast.js