Class: SrshAPI

Inherits:
Object
  • Object
show all
Defined in:
lib/srsh/runner.rb

Overview

Ruby plugin API object

Instance Method Summary collapse

Instance Method Details

#aliasesObject



1386
# File 'lib/srsh/runner.rb', line 1386

def aliases             = $aliases

#builtin(name, &blk) ⇒ Object



1382
# File 'lib/srsh/runner.rb', line 1382

def builtin(name, &blk) = register_builtin(name, &blk)

#hook(type, &blk) ⇒ Object



1383
# File 'lib/srsh/runner.rb', line 1383

def hook(type, &blk)    = register_hook(type, &blk)

#scheme(name) ⇒ Object



1385
# File 'lib/srsh/runner.rb', line 1385

def scheme(name)        = set_theme!(name)

#theme(name, hash) ⇒ Object



1384
# File 'lib/srsh/runner.rb', line 1384

def theme(name, hash)   = ($themes[name.to_s] = hash.merge(name: name.to_s))