Sha256: 4fb3eedf403397ae1b10e75933d21c5f370b4db423caa00e8edf7f5262f3dc80

Contents?: true

Size: 1.08 KB

Versions: 18

Compression:

Stored size: 1.08 KB

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; module All; module ActiveCard; extend Card::Set
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set/all/active_card.rb ~~~~~~~~~~~
=begin

# following may be useful, but is neither tested nor in use

def card_attributes
  if Card::Set.traits
    set_modules.each do |mod|
      if mod_traits = Card::Set.traits[mod]
        return mod_traits
      end
    end
  end
  nil
end

def trait_var? var_name
  !instance_variable_get( var_name ).nil?
end

=end

def trait_var var_name, &block
  # FIXME - following optimization attempt needs to handle cache clearing!
#  instance_variable_get var_name or begin
#    instance_variable_set var_name, block_given? ? yield : raise("no block?")
#  end
  yield
end

#fixme -this needs a better home!
def format opts={}
  opts = { format: opts.to_sym } if [Symbol, String].member? opts.class

  Card::Format.new self, opts
end

# ~~~~~~~~~~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set/all/active_card.rb ~~~~~~~~~~~
end;end;end;end;

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
card-1.18.6 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.18.5 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.18.4 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.18.3 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.18.2 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.18.1 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.18.0 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.17.4 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.17.3 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.17.2 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.17.1 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.17.0 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.16.15 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.16.14 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.16.13 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.16.12 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.16.11 tmpsets/set/mod001-01_core/all/active_card.rb
card-1.16.10 tmpsets/set/mod001-01_core/all/active_card.rb