Sha256: 82346205d06cfa39f3041873f3344064b4361fdc61f06f81f02d1e6d3844c4a6

Contents?: true

Size: 321 Bytes

Versions: 7

Compression:

Stored size: 321 Bytes

Contents

# encoding: UTF-8

module Spontaneous::Plugins
  module InstanceCode
    extend ActiveSupport::Concern

    # InstanceMethods

    def after_initialize
      super
      mixin_instance_code
    end

    def mixin_instance_code
      self.instance_eval(self.instance_code) unless self.instance_code.nil?
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spontaneous-0.2.0.alpha7 lib/spontaneous/plugins/instance_code.rb
spontaneous-0.2.0.alpha6 lib/spontaneous/plugins/instance_code.rb
spontaneous-0.2.0.alpha5 lib/spontaneous/plugins/instance_code.rb
spontaneous-0.2.0.alpha4 lib/spontaneous/plugins/instance_code.rb
spontaneous-0.2.0.alpha3 lib/spontaneous/plugins/instance_code.rb
spontaneous-0.2.0.alpha2 lib/spontaneous/plugins/instance_code.rb
spontaneous-0.2.0.alpha1 lib/spontaneous/plugins/instance_code.rb