Sha256: e4651ef6a55f5086c335f2607c46630ea32bddecfe8190d076c2e12cb84c1645

Contents?: true

Size: 779 Bytes

Versions: 3

Compression:

Stored size: 779 Bytes

Contents

module RGSS
    module BasicCoder
        def ivars
            instance_variables
        end

        INCLUDED_CLASSES = []

        def self.included(module_)
            INCLUDED_CLASSES.push(module_)
        end

        def self.ivars_methods_set(version)
            INCLUDED_CLASSES.each do |class_|
                if version == :ace
                    RGSS.reset_method(
                        class_,
                        :ivars,
                        -> { instance_variables }
                    )
                else
                    RGSS.reset_method(
                        class_,
                        :ivars,
                        -> { instance_variables.sort }
                    )
                end
            end
        end
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rvpacker-txt-1.2.1 lib/RGSS/BasicCoder.rb
rvpacker-txt-1.2.0 lib/RGSS/BasicCoder.rb
rvpacker-txt-1.1.0 lib/RGSS/BasicCoder.rb