Class: CloudRailSi::ServiceCode::StringToStream
- Inherits:
-
Object
- Object
- CloudRailSi::ServiceCode::StringToStream
- Defined in:
- lib/cloudrail_si/servicecode/commands/stream/StringToStream.rb
Instance Method Summary collapse
Instance Method Details
#execute(environment, parameters) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/cloudrail_si/servicecode/commands/stream/StringToStream.rb', line 10 def execute(environment, parameters) Helper.assert(parameters.length == 2 && Helper.is_var_address(parameters[0])) result_var = parameters[0] source = Helper.resolve(environment, parameters[1]) Helper.assert(Helper.is_string(source)) environment.set_variable(result_var, Helper.streamify_string(source, nil)) end |
#get_identifier ⇒ Object
6 7 8 |
# File 'lib/cloudrail_si/servicecode/commands/stream/StringToStream.rb', line 6 def get_identifier 'stream.stringToStream' end |