Module: Proptypes

Includes:
Constants
Defined in:
lib/proptypes.rb,
lib/proptypes/version.rb,
lib/proptypes/constants.rb

Defined Under Namespace

Modules: Constants Classes: Error

Constant Summary collapse

StringOrNil =
Coercible::String.optional
IntegerOrNil =
Coercible::Integer.optional
BoolOrNil =
Params::Bool.optional
HashOrNil =
Coercible::Hash.optional
SymbolOrNil =
Coercible::Symbol.optional
HtmlTag =
Coercible::Symbol.default(:div).enum(*HTML_TAGS).constructor do |value|
  value ||= :div
  value.to_sym
end
Option =
(Interface(:call) | Any).constructor do |value|
  value.respond_to?(:call) ? value.call : value
end
EnumOption =
Option.dup
Key =
Coercible::Symbol.dup
VERSION =
"0.1.1"

Constants included from Constants

Constants::HTML_TAGS