class Funk::InputFn
Public Class Methods
new(name, _=nil)
click to toggle source
# File lib/funk/input_fn.rb, line 12 def initialize(name, _=nil) @name = name @dependencies = [] end
Public Instance Methods
call(input)
click to toggle source
# File lib/funk/input_fn.rb, line 17 def call(input) if input.has_key?(name) input[name] else NO_INPUT_PROVIDED end end