Sha256: f1ed35ce8b8356648156acda318a072beca7f078c13956b5f560dac9fcf94448

Contents?: true

Size: 1.13 KB

Versions: 34

Compression:

Stored size: 1.13 KB

Contents

class LucidOperation
  extend Preact::PropDeclarationMixin
  extend Isomorfeus::Operation::GenericClassApi

  if RUBY_ENGINE == 'opal'
    class << self
      def procedure(gherkin_text); end
      def steps; end

      alias :gherkin :steps
      alias :ensure_steps :steps
      alias :failure_steps :steps
      alias :Given :steps
      alias :And :steps
      alias :Then :steps
      alias :When :steps
      alias :Ensure :steps
      alias :Failed :steps
      alias :If_failing :steps
      alias :When_failing :steps
      alias :If_this_failed :steps
      alias :If_that_failed :steps
      alias :First :steps
      alias :Finally :steps
    end
  else
    extend LucidOperation::Steps
    include LucidOperation::PromiseRun

    def self.inherited(base)
      Isomorfeus.add_valid_operation_class(base)
    end

    attr_reader :props
    attr_accessor :step_result

    def initialize(**props_hash)
      @props = self.class.validated_props(props_hash)
    end

    def current_user
      Isomorfeus.current_user
    end

    def pub_sub_client
      Isomorfeus.pub_sub_client
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
isomorfeus-operation-23.9.0.rc7 lib/lucid_operation.rb
isomorfeus-operation-23.9.0.rc6 lib/lucid_operation.rb
isomorfeus-operation-23.9.0.rc5 lib/lucid_operation.rb
isomorfeus-operation-23.9.0.rc4 lib/lucid_operation.rb
isomorfeus-operation-23.9.0.rc3 lib/lucid_operation.rb
isomorfeus-operation-23.9.0.rc2 lib/lucid_operation.rb
isomorfeus-operation-23.9.0.rc1 lib/lucid_operation.rb
isomorfeus-operation-23.8.0.rc3 lib/lucid_operation.rb
isomorfeus-operation-23.8.0.rc2 lib/lucid_operation.rb
isomorfeus-operation-23.8.0.rc1 lib/lucid_operation.rb
isomorfeus-operation-23.7.0.rc5 lib/lucid_operation.rb
isomorfeus-operation-23.7.0.rc4 lib/lucid_operation.rb
isomorfeus-operation-23.7.0.rc3 lib/lucid_operation.rb
isomorfeus-operation-23.7.0.rc2 lib/lucid_operation.rb
isomorfeus-operation-23.7.0.rc1 lib/lucid_operation.rb
isomorfeus-operation-23.6.0.rc5 lib/lucid_operation.rb
isomorfeus-operation-23.6.0.rc4 lib/lucid_operation.rb
isomorfeus-operation-23.6.0.rc3 lib/lucid_operation.rb
isomorfeus-operation-23.6.0.rc2 lib/lucid_operation.rb
isomorfeus-operation-23.6.0.rc1 lib/lucid_operation.rb