Sha256: e7e399c35b2c03085714819cbd0b99da309c313c87c9f5591c7279115469d2d0

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 Bytes

Contents

module RailsClafer
  class SubClafer
    class << self
      def from_assoc(assoc, clafer)
        new clafer, assoc.dst_card
      end
    end
    attr_accessor :name, :clafer, :card, :gcard
    def initialize(clafer, card)
      @name = clafer.name
      @clafer = clafer
      @card = card
      @gcard = GCard.new
    end

    def method_missing(name, *args)
      if @clafer.respond_to?(name)
        @clafer.send(name, *args)
      else
        super
      end
    end

    def children
      @clafer.children			
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_clafer-0.1.7 lib/rails_clafer/sub_clafer.rb
rails_clafer-0.1.5 lib/rails_clafer/sub_clafer.rb
rails_clafer-0.1.4 lib/rails_clafer/sub_clafer.rb
rails_clafer-0.1.3 lib/rails_clafer/sub_clafer.rb
rails_clafer-0.1.2 lib/rails_clafer/sub_clafer.rb