module Toil

Constants

MAJOR
MINOR
TINY
VERSION

Public Class Methods

[](prototype_name) click to toggle source
# File lib/toil.rb, line 12
def [](prototype_name)
  Prototype[prototype_name]
end
args(prototype_name, *overrides)
Alias for: to_a
arguments(prototype_name, *overrides)
Alias for: to_a
attributes(prototype_name, overrides = {})
Alias for: to_h
atts(prototype_name, overrides = {})
Alias for: to_h
call(prototype_name, *overrides) click to toggle source
# File lib/toil.rb, line 7
def call(prototype_name, *overrides)
  self[prototype_name].call(*overrides)
end
Also aliased as: create
create(prototype_name, *overrides)
Alias for: call
params(prototype_name, overrides = {})
Alias for: to_h
register(prototype_name, obj = nil, &blk) click to toggle source
# File lib/toil.rb, line 16
def register(prototype_name, obj = nil, &blk)
  Prototype.register(prototype_name, obj, &blk)
end
to_a(prototype_name, *overrides) click to toggle source
# File lib/toil.rb, line 20
def to_a(prototype_name, *overrides)
  self[prototype_name].to_a(*overrides)
end
Also aliased as: args, arguments
to_h(prototype_name, overrides = {}) click to toggle source
# File lib/toil.rb, line 26
def to_h(prototype_name, overrides = {})
  self[prototype_name].to_h(overrides)
end
Also aliased as: atts, attributes, params
version() click to toggle source
# File lib/toil/version.rb, line 9
def self.version
  VERSION
end