Sha256: 617ef72b61cb30612685cb4a5a1dfa2b39b17b650c4f94324e7fdd09c49ea8f1

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 Bytes

Contents

module Iowa
  class DetachedComponent < Iowa::Component
    def self.template
      @mtemplate
    end

    def self.template=(args)
      if args.is_a?(Array)
        template_data = args[0]
        binding_data = args[1]
      else
        template_data = args
        binding_data = Iowa::C_empty
      end
      @mtemplate = Iowa::TemplateParser.new(template_data,Iowa::BindingsParser.new(binding_data,self.class).bindings,self).root
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
IOWA-1.0.3 src/iowa/DetachedComponent.rb
IOWA-1.0.2 src/iowa/DetachedComponent.rb
IOWA-1.0.0 src/iowa/DetachedComponent.rb