Sha256: acdf1bef4767632654013de18fbc6efcd3fd93708e869dc892c6bfe68b8b9747
Contents?: true
Size: 523 Bytes
Versions: 32
Compression:
Stored size: 523 Bytes
Contents
# frozen_string_literal: true require 'eac_templates/variables/providers/base' module EacTemplates module Variables module Providers class Generic < ::EacTemplates::Variables::Providers::Base class << self def accept?(variables_source) variables_source.is_a?(::Object) end end def variable_exist?(name) source.respond_to?(name) end def variable_fetch(name) source.send(name) end end end end end
Version data entries
32 entries across 32 versions & 2 rubygems