Sha256: 4f8bddf08993e6d9d0f5ba8cfcc13d9a831445e781cda65ec5ee66781ca1b30e
Contents?: true
Size: 642 Bytes
Versions: 2
Compression:
Stored size: 642 Bytes
Contents
module LucidLocalOperation module Mixin def self.included(base) if RUBY_ENGINE != 'opal' Isomorfeus.add_valid_operation_class(base) unless base == LucidLocalOperation::Base end base.extend(LucidPropDeclaration::Mixin) base.extend(LucidOperation::Steps) base.include(LucidOperation::PromiseRun) base.instance_exec do def promise_run(props_hash = nil, props: nil) props_hash = props_hash || props validate_props(props_hash) self.new(props_hash).promise_run end end end attr_accessor :props attr_accessor :step_result end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
isomorfeus-operation-1.0.0.zeta12 | lib/isomorfeus_operation/lucid_local_operation/mixin.rb |
isomorfeus-operation-1.0.0.zeta11 | lib/isomorfeus_operation/lucid_local_operation/mixin.rb |