Sha256: 86005922a076ed7d1899de9035f1b7bb03e7b7eb17e8464c3bafb56189439d22
Contents?: true
Size: 553 Bytes
Versions: 10
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true module Dynflow module Flows class Atom < Abstract attr_reader :step_id def to_hash super.merge(:step_id => step_id) end def initialize(step_id) @step_id = Type! step_id, Integer end def size 1 end def all_step_ids [step_id] end def flatten! # nothing to do end protected def self.new_from_hash(hash) check_class_matching hash new(hash[:step_id]) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems