SYMBOL INDEX (339 symbols across 35 files) FILE: doc/memoize.rb class Factors (line 6) | class Factors method sum_of (line 9) | def self.sum_of(number) method of (line 13) | def self.of(number) method factor? (line 17) | def self.factor?(number, potential) method perfect? (line 21) | def self.perfect?(number) method abundant? (line 25) | def self.abundant?(number) method deficient? (line 29) | def self.deficient?(number) function memory_usage (line 40) | def memory_usage function print_memory_usage (line 44) | def print_memory_usage function run_benchmark (line 49) | def run_benchmark(n = 10000) FILE: lib/functional.rb type Functional (line 27) | module Functional FILE: lib/functional/abstract_struct.rb type Functional (line 12) | module Functional type AbstractStruct (line 16) | module AbstractStruct function each (line 27) | def each function each_pair (line 41) | def each_pair function eql? (line 53) | def eql?(other) function inspect (line 64) | def inspect function length (line 73) | def length function fields (line 81) | def fields function to_h (line 88) | def to_h function set_data_hash (line 98) | def set_data_hash(data) function set_values_array (line 106) | def set_values_array(values) function define_class (line 121) | def self.define_class(parent, datatype, fields) function included (line 135) | def self.included(base) type ClassMethods (line 143) | module ClassMethods FILE: lib/functional/delay.rb type Functional (line 3) | module Functional class Delay (line 30) | class Delay < Synchronization::Object method initialize (line 37) | def initialize(&block) method state (line 49) | def state method reason (line 58) | def reason method value (line 75) | def value method fulfilled? (line 81) | def fulfilled? method rejected? (line 88) | def rejected? method pending? (line 95) | def pending? method execute_task_once (line 107) | def execute_task_once FILE: lib/functional/either.rb type Functional (line 12) | module Functional class Either (line 84) | class Either < Synchronization::Object method left (line 101) | def left(value) method right (line 110) | def right(value) method error (line 133) | def error(message = nil, clazz = StandardError) method left (line 143) | def left method right (line 151) | def right method left? (line 159) | def left? method right? (line 168) | def right? method swap (line 177) | def swap method either (line 190) | def either(lproc, rproc) method iff (line 204) | def self.iff(lvalue, rvalue, condition = NO_VALUE) method initialize (line 218) | def initialize(value, is_left) FILE: lib/functional/final_struct.rb type Functional (line 4) | module Functional class FinalStruct (line 48) | class FinalStruct < Synchronization::Object method initialize (line 55) | def initialize(attributes = {}) method get (line 72) | def get(field) method set (line 90) | def set(field, value) method set? (line 108) | def set?(field) method get_or_set (line 118) | def get_or_set(field, value) method fetch (line 128) | def fetch(field, default) method each_pair (line 139) | def each_pair method to_h (line 152) | def to_h method eql? (line 162) | def eql?(other) method inspect (line 172) | def inspect method ns_get_attribute (line 182) | def ns_get_attribute(field) method ns_set_attribute (line 188) | def ns_set_attribute(field, value) method ns_attribute_has_been_set? (line 194) | def ns_attribute_has_been_set?(field) method method_missing (line 208) | def method_missing(symbol, *args) FILE: lib/functional/final_var.rb type Functional (line 3) | module Functional class FinalVar (line 44) | class FinalVar < Synchronization::Object method initialize (line 53) | def initialize(value = NO_VALUE) method get (line 61) | def get method set (line 71) | def set(value) method set? (line 85) | def set? method get_or_set (line 94) | def get_or_set(value) method fetch (line 108) | def fetch(default) method eql? (line 120) | def eql?(other) method inspect (line 136) | def inspect method to_s (line 150) | def to_s method has_been_set? (line 158) | def has_been_set? FILE: lib/functional/memo.rb type Functional (line 3) | module Functional type Memo (line 18) | module Memo function extended (line 21) | def self.extended(base) function included (line 28) | def self.included(base) type ClassMethods (line 35) | module ClassMethods class Memoizer (line 38) | class Memoizer < Synchronization::Object method initialize (line 40) | def initialize(function, max_cache) method max_cache? (line 48) | def max_cache? function memoize (line 71) | def memoize(func, opts = {}) function __define_memo_proxy__ (line 82) | def __define_memo_proxy__(func) function __proxy_memoized_method__ (line 91) | def __proxy_memoized_method__(func, *args, &block) FILE: lib/functional/method_signature.rb type Functional (line 1) | module Functional type PatternMatching (line 3) | module PatternMatching type MethodSignature (line 9) | module MethodSignature function match? (line 15) | def match?(pattern, args) function valid_pattern? (line 33) | def valid_pattern?(args, pattern) function all_param_and_last_arg? (line 41) | def all_param_and_last_arg?(pattern, param, index) function arg_is_type_of_param? (line 49) | def arg_is_type_of_param?(param, arg) function hash_param_with_matching_arg? (line 57) | def hash_param_with_matching_arg?(param, arg) function param_matches_arg? (line 67) | def param_matches_arg?(param, arg) FILE: lib/functional/option.rb type Functional (line 12) | module Functional class Option (line 21) | class Option < Synchronization::Object method none (line 41) | def none(reason = nil) method some (line 49) | def some(value) method some? (line 57) | def some? method none? (line 66) | def none? method some (line 75) | def some method length (line 85) | def length method and (line 106) | def and(other = NO_OPTION) method or (line 134) | def or(other = NO_OPTION) method else (line 158) | def else(other = NO_OPTION) method iff (line 180) | def self.iff(value, condition = NO_OPTION) method inspect (line 187) | def inspect method initialize (line 201) | def initialize(value, none, reason = nil) FILE: lib/functional/pattern_matching.rb type Functional (line 3) | module Functional type PatternMatching (line 15) | module PatternMatching function initialize (line 30) | def initialize(function, clazz, pattern) function when (line 35) | def when(&block) function __unbound_args__ (line 50) | def __unbound_args__(match, args) function __pass_guard__? (line 68) | def __pass_guard__?(matcher, args) function __pattern_match__ (line 74) | def __pattern_match__(clazz, function, *args, &block) function included (line 83) | def self.included(base) type ClassMethods (line 90) | module ClassMethods function _ (line 93) | def _() function defn (line 98) | def defn(function, *args, &block) function __define_method_with_matching__ (line 125) | def __define_method_with_matching__(function) function __function_pattern_matches__ (line 147) | def __function_pattern_matches__ function __register_pattern__ (line 152) | def __register_pattern__(function, *args, &block) function __pattern_arity__ (line 162) | def __pattern_arity__(pat) FILE: lib/functional/protocol.rb type Functional (line 3) | module Functional function SpecifyProtocol (line 38) | def SpecifyProtocol(name, &block) type Protocol (line 60) | module Protocol function Satisfy? (line 72) | def Satisfy?(target, *protocols) function Satisfy! (line 87) | def Satisfy!(target, *protocols) function Specified? (line 100) | def Specified?(*protocols) function Specified! (line 115) | def Specified!(*protocols) function satisfies? (line 129) | def self.satisfies?(target, protocol) function unspecified (line 138) | def self.unspecified(*protocols) function error (line 151) | def self.error(target, message, *protocols) FILE: lib/functional/protocol_info.rb type Functional (line 3) | module Functional class ProtocolInfo (line 9) | class ProtocolInfo < Synchronization::Object method initialize (line 22) | def initialize(name, &specification) method instance_methods (line 39) | def instance_methods method class_methods (line 47) | def class_methods method constants (line 54) | def constants method satisfies? (line 61) | def satisfies?(target) method satisfies_constants? (line 77) | def satisfies_constants?(target) method satisfies_instance_methods? (line 86) | def satisfies_instance_methods?(target) method satisfies_class_methods? (line 101) | def satisfies_class_methods?(target) method check_arity? (line 121) | def check_arity?(method, expected) method instance_method (line 133) | def instance_method(name, arity = nil) method class_method (line 142) | def class_method(name, arity = nil) method attr_reader (line 150) | def attr_reader(name) method attr_writer (line 157) | def attr_writer(name) method attr_accessor (line 164) | def attr_accessor(name) method class_attr_reader (line 172) | def class_attr_reader(name) method class_attr_writer (line 179) | def class_attr_writer(name) method class_attr_accessor (line 186) | def class_attr_accessor(name) method constant (line 194) | def constant(name) FILE: lib/functional/record.rb type Functional (line 5) | module Functional type Record (line 25) | module Record function new (line 33) | def new(*fields, &block) class Restrictions (line 62) | class Restrictions method initialize (line 73) | def initialize(types = nil, &block) method mandatory (line 86) | def mandatory(*fields) method default (line 94) | def default(field, value) method clone_default (line 104) | def clone_default(field) method validate! (line 117) | def validate!(data) method validate_mandatory! (line 129) | def validate_mandatory!(data) method validate_types! (line 139) | def validate_types!(data) method uncloneable? (line 156) | def uncloneable?(object) function check_types! (line 166) | def check_types!(types) function build (line 179) | def build(name, fields, types, &block) function define_initializer (line 194) | def define_initializer(record) function define_reader (line 216) | def define_reader(record, field) FILE: lib/functional/synchronization.rb type Functional (line 1) | module Functional type Synchronization (line 7) | module Synchronization class Object (line 14) | class Object method initialize (line 17) | def initialize(*args) method synchronize (line 23) | def synchronize method ensure_ivar_visibility! (line 28) | def ensure_ivar_visibility! method initialize (line 39) | def initialize(*args) method synchronize (line 45) | def synchronize(&block) method ensure_ivar_visibility! (line 50) | def ensure_ivar_visibility! method initialize (line 64) | def initialize(*args) method synchronize (line 72) | def synchronize method ensure_ivar_visibility! (line 81) | def ensure_ivar_visibility! class Object (line 36) | class Object method initialize (line 17) | def initialize(*args) method synchronize (line 23) | def synchronize method ensure_ivar_visibility! (line 28) | def ensure_ivar_visibility! method initialize (line 39) | def initialize(*args) method synchronize (line 45) | def synchronize(&block) method ensure_ivar_visibility! (line 50) | def ensure_ivar_visibility! method initialize (line 64) | def initialize(*args) method synchronize (line 72) | def synchronize method ensure_ivar_visibility! (line 81) | def ensure_ivar_visibility! class Object (line 61) | class Object method initialize (line 17) | def initialize(*args) method synchronize (line 23) | def synchronize method ensure_ivar_visibility! (line 28) | def ensure_ivar_visibility! method initialize (line 39) | def initialize(*args) method synchronize (line 45) | def synchronize(&block) method ensure_ivar_visibility! (line 50) | def ensure_ivar_visibility! method initialize (line 64) | def initialize(*args) method synchronize (line 72) | def synchronize method ensure_ivar_visibility! (line 81) | def ensure_ivar_visibility! FILE: lib/functional/tuple.rb type Functional (line 3) | module Functional class Tuple (line 24) | class Tuple < Synchronization::Object method initialize (line 30) | def initialize(data = []) method at (line 45) | def at(index) method fetch (line 60) | def fetch(index, default) method length (line 71) | def length method intersect (line 82) | def intersect(other) method union (line 91) | def union(other) method concat (line 100) | def concat(other) method diff (line 109) | def diff(other) method repeat (line 120) | def repeat(multiple) method uniq (line 130) | def uniq method each (line 139) | def each method each_with_index (line 152) | def each_with_index method sequence (line 169) | def sequence method eql? (line 188) | def eql?(other) method empty? (line 196) | def empty? method first (line 203) | def first method rest (line 212) | def rest method to_a (line 225) | def to_a method inspect (line 235) | def inspect method to_s (line 245) | def to_s FILE: lib/functional/type_check.rb type Functional (line 1) | module Functional type TypeCheck (line 6) | module TypeCheck function Type? (line 15) | def Type?(value, *types) function Type! (line 29) | def Type!(value, *types) function Match? (line 45) | def Match?(value, *types) function Match! (line 62) | def Match!(value, *types) function Child? (line 76) | def Child?(value, *types) function Child! (line 90) | def Child!(value, *types) function error (line 107) | def self.error(value, message, types) FILE: lib/functional/union.rb type Functional (line 4) | module Functional type Union (line 56) | module Union function new (line 63) | def new(*fields) function build (line 75) | def build(fields) function define_properties (line 92) | def define_properties(union) function define_predicate (line 103) | def define_predicate(union, field) function define_reader (line 115) | def define_reader(union, field) function define_initializer (line 126) | def define_initializer(union) function define_factory (line 148) | def define_factory(union, field) FILE: lib/functional/value_struct.rb type Functional (line 3) | module Functional class ValueStruct (line 28) | class ValueStruct < Synchronization::Object method initialize (line 30) | def initialize(attributes) method get (line 46) | def get(field) method set? (line 56) | def set?(field) method fetch (line 66) | def fetch(field, default) method each_pair (line 77) | def each_pair method to_h (line 88) | def to_h method eql? (line 98) | def eql?(other) method inspect (line 108) | def inspect method set_attribute (line 123) | def set_attribute(field, value) method method_missing (line 136) | def method_missing(symbol, *args) FILE: lib/functional/version.rb type Functional (line 1) | module Functional FILE: spec/functional/complex_pattern_matching_spec.rb class Bar (line 3) | class Bar method greet (line 4) | def greet class Foo (line 9) | class Foo < Bar class Baz (line 116) | class Baz < Foo method boom_boom_room (line 117) | def boom_boom_room method who (line 120) | def who(first, last) class Fizzbuzz (line 125) | class Fizzbuzz < Baz FILE: spec/functional/delay_spec.rb type Functional (line 1) | module Functional FILE: spec/functional/either_spec.rb type Functional (line 3) | module Functional FILE: spec/functional/final_struct_spec.rb type Functional (line 3) | module Functional function to_h (line 30) | def to_h; {answer: 42, harmless: 'mostly'}; end function to_h (line 231) | def to_h; {answer: 42, harmless: 'mostly'}; end FILE: spec/functional/final_var_spec.rb type Functional (line 1) | module Functional FILE: spec/functional/memo_spec.rb type Functional (line 1) | module Functional function create_new_memo_class (line 5) | def create_new_memo_class function foo (line 67) | def self.foo function foo (line 84) | def self.foo function foo (line 101) | def self.foo FILE: spec/functional/option_spec.rb type Functional (line 4) | module Functional FILE: spec/functional/pattern_matching_spec.rb type Functional (line 3) | module Functional function new_clazz (line 7) | def new_clazz(&block) class Clazz (line 20) | class Clazz class UnmatchedCallTesterSuperclass (line 87) | class UnmatchedCallTesterSuperclass method foo (line 88) | def foo(bar) class UnmatchedCallTesterSubclass (line 93) | class UnmatchedCallTesterSubclass < UnmatchedCallTesterSuperclass class RecursiveCallTesterSuperclass (line 112) | class RecursiveCallTesterSuperclass method foo (line 113) | def foo(bar) class RecursiveCallTesterSubclass (line 118) | class RecursiveCallTesterSubclass < RecursiveCallTesterSuperclass function tst (line 420) | def tst; :test end FILE: spec/functional/protocol_info_spec.rb type Functional (line 1) | module Functional function bar (line 139) | def bar(a, b, c=1, d=2, *args); nil; end function baz (line 140) | def self.baz(); nil; end function bar (line 153) | def bar(); nil; end function baz (line 154) | def self.baz(); nil; end function bar (line 167) | def bar(a,b,c); nil; end function baz (line 168) | def self.baz(a,b,c); nil; end function bar (line 181) | def bar(a, b=1); nil; end function baz (line 182) | def self.baz(a, b=1, c=2); nil; end function bar (line 210) | def bar(a, *args); nil; end function baz (line 211) | def self.baz(a, b, *args); nil; end function bar (line 224) | def bar(*args); nil; end function baz (line 225) | def self.baz(*args); nil; end function foo (line 241) | def foo() true; end function foo= (line 242) | def foo=(value) true; end function foo (line 261) | def self.foo() true; end function foo= (line 262) | def self.foo=(value) true; end function foo (line 292) | def foo(); nil; end function bar (line 293) | def bar(a, b, c); nil; end function baz (line 294) | def baz(a, b, *args); nil; end function foo (line 295) | def self.foo(); nil; end function bar (line 296) | def self.bar(a, b, c); nil; end function baz (line 297) | def self.baz(a, b, *args); nil; end function foo (line 314) | def foo(*args); nil; end function bar (line 315) | def bar(*args); nil; end function baz (line 316) | def baz(*args); nil; end function foo (line 317) | def self.foo(*args); nil; end function bar (line 318) | def self.bar(*args); nil; end function baz (line 319) | def self.baz(*args); nil; end function bar (line 331) | def bar(a, b, *args); nil; end function bar (line 343) | def self.bar(a, b, *args); nil; end function foo (line 355) | def foo() true; end function foo= (line 356) | def foo=() false; end function foo (line 360) | def foo(value) false; end function foo= (line 361) | def foo=(value) true; end function foo (line 374) | def self.foo() true; end function foo= (line 375) | def self.foo=() false; end function foo (line 379) | def self.foo(value) false; end function foo= (line 380) | def self.foo=(value) true; end function instance_method (line 404) | def instance_method() 42; end function class_method (line 410) | def class_method() 42; end function instance_method (line 425) | def instance_method() 42; end function class_method (line 431) | def class_method() 42; end FILE: spec/functional/protocol_spec.rb function foo (line 52) | def foo(); nil; end function foo (line 78) | def foo(); nil; end function foo (line 93) | def foo(); nil; end function foo (line 108) | def foo(); nil; end function bar (line 109) | def self.bar(); nil; end function foo (line 124) | def foo(); nil; end function bar (line 125) | def self.bar(); nil; end function foo (line 142) | def foo(); nil; end function foo (line 169) | def foo(); nil; end function foo (line 193) | def foo(); nil; end function bar (line 194) | def self.bar(); nil; end function foo (line 209) | def foo(); nil; end function bar (line 210) | def self.bar(); nil; end FILE: spec/functional/record_spec.rb type Functional (line 4) | module Functional function foo (line 203) | def foo() nil end function full_name (line 266) | def full_name function formal_name (line 270) | def formal_name FILE: spec/functional/tuple_spec.rb type Functional (line 9) | module Functional function to_a (line 34) | def to_a() [:foo, :bar, :baz]; end function to_a (line 182) | def to_a() [2, 3, 4]; end function to_a (line 244) | def to_a() [2, 3, 4]; end function to_a (line 298) | def to_a() [4, 5, 6]; end function to_a (line 368) | def to_a() [3, 4, 5]; end function to_a (line 558) | def to_a() [1, 2, 3]; end FILE: spec/functional/type_check_spec.rb type Functional (line 1) | module Functional FILE: spec/functional/union_spec.rb type Functional (line 3) | module Functional FILE: spec/functional/value_struct_spec.rb type Functional (line 3) | module Functional function each_pair (line 31) | def each_pair(&block) function to_h (line 168) | def to_h; {answer: 42, harmless: 'mostly'}; end