Sha256: 1b7b80a5f6e40d94945eacc84a26273604ac5fe429c92bd4d3d1111a49483402
Contents?: true
Size: 881 Bytes
Versions: 1
Compression:
Stored size: 881 Bytes
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class All # Set: All cards (ContextualContent) # module ContextualContent; extend Card::Set def self.source_location; "/Users/ezl5238/dev/decko/gem/mod/content/set/all/contextual_content.rb"; end def context_card @context_card || self end def with_context context_card old_context = @context_card @context_card = context_card if context_card yield ensure @context_card = old_context end module Format; module_parent.send :register_set_format, Card::Format, self; extend Card::Set::AbstractFormat delegate :context_card, :with_context, to: :card def contextual_content context_card, options={} view = options.delete(:view) || :core with_context(context_card) { render! view, options } end end end;end;end;end; # ~~ generated from /Users/ezl5238/dev/decko/gem/mod/content/set/all/contextual_content.rb ~~
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
card-1.102.0 | tmpsets/set/mod006-content/all/contextual_content.rb |