class Riddler::Steps::Variant
Public Class Methods
type()
click to toggle source
# File lib/riddler/steps/variant.rb, line 4 def self.type "variant" end
Public Instance Methods
included_step()
click to toggle source
# File lib/riddler/steps/variant.rb, line 14 def included_step steps.detect &:include? end
steps()
click to toggle source
# File lib/riddler/steps/variant.rb, line 8 def steps @steps ||= definition["steps"].map do |hash| ::Riddler::Step.for hash, context end end
to_hash()
click to toggle source
# File lib/riddler/steps/variant.rb, line 18 def to_hash included_step&.to_hash end