class Structured::Integer
Private Class Methods
parse(yaml_value, stack:, context: nil)
click to toggle source
# File lib/structured/integer.rb, line 5 def self.parse(yaml_value, stack:, context: nil) unless yaml_value.is_a?(::Integer) raise Structured::Errors::InvalidValue.new( stack, "#{stack} expects an integer, but found: #{yaml_value.inspect}" ) end yaml_value end