Class: Rabarber::Input::Types::Proc

Inherits:
Base
  • Object
show all
Defined in:
lib/rabarber/input/types/proc.rb

Instance Attribute Summary

Attributes inherited from Base

#error_message, #error_type, #value

Instance Method Summary collapse

Methods inherited from Base

#initialize, #process

Constructor Details

This class inherits a constructor from Rabarber::Input::Base

Instance Method Details

#valid?Boolean

Returns:



7
8
9
# File 'lib/rabarber/input/types/proc.rb', line 7

def valid?
  value.is_a?(::Proc)
end