module KeywordInit::Strict
Public Class Methods
included(mod)
click to toggle source
# File lib/keyword_init.rb, line 35 def self.included(mod) mod.send(:include, Common) end
Private Instance Methods
_set_properties(properties)
click to toggle source
# File lib/keyword_init.rb, line 40 def _set_properties(properties) return unless properties properties.each do |k, v| normal_setter = Common.normal_setter(k) raise KeyError.new("no setter recognised for #{k}") unless respond_to? normal_setter, true send normal_setter, v end end