Method: RubyApp::Session#add_step!
- Defined in:
- lib/ruby_app/session.rb
#add_step!(_class, &block) ⇒ Object
75 76 77 78 79 80 81 |
# File 'lib/ruby_app/session.rb', line 75 def add_step!(_class, &block) caller = Kernel.caller.first.split(':') @steps.push({:_class => _class, :file => caller[0].gsub(String.interpolate { RubyApp::Session.configuration.scripts.path }, '').gsub(/^\//, ''), :line => caller[1].to_i, :block => block}) end |