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