Module: Drymm::Shapes

Extended by:
JSONMethods::ClassMethods
Includes:
Dry::Core::Constants
Defined in:
lib/drymm/shapes.rb,
lib/drymm/shapes/fn.rb,
lib/drymm/shapes/node.rb,
lib/drymm/shapes/const.rb,
lib/drymm/shapes/logic.rb,
lib/drymm/shapes/types.rb,
lib/drymm/shapes/branch.rb,
lib/drymm/shapes/summarize.rb,
lib/drymm/shapes/ast_methods.rb,
lib/drymm/shapes/atomic_type.rb,
lib/drymm/shapes/json_methods.rb,
lib/drymm/shapes/sum_enclosure.rb

Overview

The core Shapes namespace

Defined Under Namespace

Modules: ASTMethods, Branch, Fn, JSONMethods, Logic, Mix, SumEnclosure, Summarize, Types Classes: AtomicType, Const, Node

Class Method Summary collapse

Methods included from JSONMethods::ClassMethods

from_json

Class Method Details

.call(input) ⇒ Object Also known as: []



22
23
24
# File 'lib/drymm/shapes.rb', line 22

def call(input)
  sum[input]
end

.sumObject



18
19
20
# File 'lib/drymm/shapes.rb', line 18

def sum
  Drymm["sum"]
end