class Configurations::Maps::Types::Entry

Attributes

type[R]

Public Class Methods

new(type) click to toggle source
# File lib/configurations/maps/types.rb, line 8
def initialize(type)
  @type = type
end

Public Instance Methods

valid?(value) click to toggle source
# File lib/configurations/maps/types.rb, line 12
def valid?(value)
  !@type || value.is_a?(@type)
end