Class: AWSCDK::StringConcat
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::StringConcat
- Includes:
- IFragmentConcatenator
- Defined in:
- string_concat.rb
Overview
Converts all fragments to strings and concats those.
Drops 'undefined's.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ StringConcat
constructor
A new instance of StringConcat.
-
#join(left, right) ⇒ Object
Join the fragment on the left and on the right.
Constructor Details
#initialize ⇒ StringConcat
Returns a new instance of StringConcat.
11 12 13 |
# File 'string_concat.rb', line 11 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.jsii_overridable_methods ⇒ Object
15 16 17 18 19 |
# File 'string_concat.rb', line 15 def self.jsii_overridable_methods { :join => { kind: :method, name: "join", is_optional: false }, } end |
Instance Method Details
#join(left, right) ⇒ Object
Join the fragment on the left and on the right.
26 27 28 29 30 |
# File 'string_concat.rb', line 26 def join(left, right) Jsii::Type.check_type(left, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "left") Jsii::Type.check_type(right, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "right") jsii_call_method("join", [left, right]) end |