Module: Steppy::InstanceMethods

Defined in:
lib/steppy.rb

Overview

Steppy instance methods that will be added.

Instance Method Summary collapse

Instance Method Details

#steppy(attributes, prefix: :step) ⇒ Object



54
55
56
57
58
59
60
61
# File 'lib/steppy.rb', line 54

def steppy(attributes, prefix: :step)
  @steppy_prefix = prefix
  @steppy = { attributes: attributes.freeze }

  steppy_run(
    (steppy_class_block || steppy_class_cache).to_h
  )
end

#steppy_attributesObject



63
64
65
# File 'lib/steppy.rb', line 63

def steppy_attributes
  @steppy[:attributes]
end