Class: Clomp::Callable

Inherits:
Object
  • Object
show all
Defined in:
lib/clomp/callable.rb

Class Method Summary collapse

Class Method Details

.[](track, options, _self) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/clomp/callable.rb', line 4

def [](track, options, _self)
  if track.track_from
    #FIXME: stop executing! we will call it from our context
    track.track_from.new(track_builders: [track], options: options, exec: false)
  else
    _self
  end
end