Class: General::GPartial

Inherits:
Object
  • Object
show all
Defined in:
lib/gpartials/gpartial.rb

Overview

Created: 7 - 29 - 2016

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj, dft = {}) ⇒ GPartial

Initializes the GPartial with the given object

Parameter: obj - the object containing information for the partial Parameter: dft - the hash of default data from the GTemplate



51
# File 'lib/gpartials/gpartial.rb', line 51

def initialize(obj,dft={}); @name = obj[:name].to_sym; end

Instance Attribute Details

#nameObject (readonly)

Get name



45
46
47
# File 'lib/gpartials/gpartial.rb', line 45

def name
  @name
end