Sha256: 590cb2de6ce524bd79385d571a8af3fe67ac4e8e6cee01a0c8d55fe6f2bf19aa

Contents?: true

Size: 226 Bytes

Versions: 6

Compression:

Stored size: 226 Bytes

Contents

module Kanji
  module InstanceDefine
    def instance_define(*args)
      args.each do |arg|
        define_method "#{arg}" do |value|
          instance_variable_set("@_#{arg}", value)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kanji-web-0.3.1 lib/kanji/instance_define.rb
kanji-web-0.3.0 lib/kanji/instance_define.rb
kanji-web-0.2.2 lib/kanji/instance_define.rb
kanji-web-0.2.1 lib/kanji/instance_define.rb
kanji-web-0.2.0 lib/kanji/instance_define.rb
kanji-web-0.1.0 lib/kanji/instance_define.rb