Sha256: beacf20f1dd629ac72f1a172bea0c19bcde273f49c6f4467fd70487a7eb4be59

Contents?: true

Size: 323 Bytes

Versions: 10

Compression:

Stored size: 323 Bytes

Contents

# encoding: UTF-8

module Spontaneous::Model::Core
  module InstanceCode
    extend Spontaneous::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

10 entries across 10 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/model/core/instance_code.rb
spontaneous-0.2.0.beta9 lib/spontaneous/model/core/instance_code.rb
spontaneous-0.2.0.beta8 lib/spontaneous/model/core/instance_code.rb
spontaneous-0.2.0.beta7 lib/spontaneous/model/core/instance_code.rb
spontaneous-0.2.0.beta6 lib/spontaneous/model/core/instance_code.rb
spontaneous-0.2.0.beta5 lib/spontaneous/model/core/instance_code.rb
spontaneous-0.2.0.beta4 lib/spontaneous/model/core/instance_code.rb
spontaneous-0.2.0.beta3 lib/spontaneous/model/core/instance_code.rb
spontaneous-0.2.0.beta2 lib/spontaneous/model/core/instance_code.rb
spontaneous-0.2.0.beta1 lib/spontaneous/model/core/instance_code.rb