module Taipo::Refinements
Refinements
on core classes used in Taipo
@since 1.4.0 @api private
Public Instance Methods
bare_constraint?()
click to toggle source
Check
if the string represents a bare constraint
Taipo
allows certain bare constraints to be written in type definitions. A bare constraint can be either an instance method or a symbol.
@return [Boolean] the result
@since 1.4.0 @api private
# File lib/taipo/refinements.rb, line 25 def bare_constraint? (self[0] == ':' && self[1] != ':') || self[0] == '#' end