Top Level Namespace

Defined Under Namespace

Modules: Volute

Instance Method Summary collapse

Instance Method Details

#volute(*args, &block) ⇒ Object

Registers a ‘volute’ at the top level (ie a volute not nested into another)



287
288
289
290
# File 'lib/volute.rb', line 287

def volute(*args, &block)

  Volute.register(args, block)
end

#volutes(arg = nil) ⇒ Object

With no arguments, it will list all the top-level volutes.



294
295
296
297
# File 'lib/volute.rb', line 294

def volutes(arg=nil)

  arg ? Volute.top.filter(arg) : Volute.top
end