Class: General::GPartial
- Inherits:
-
Object
- Object
- General::GPartial
- Defined in:
- lib/gpartials/gpartial.rb
Overview
Created: 7 - 29 - 2016
Direct Known Subclasses
GArrayPlaceholder, GFullPlaceholder, GPlaceholder, GText, GTimeFormatPlaceholder
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Get name.
Instance Method Summary collapse
-
#initialize(obj, dft = {}) ⇒ GPartial
constructor
Initializes the GPartial with the given object.
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
#name ⇒ Object (readonly)
Get name
45 46 47 |
# File 'lib/gpartials/gpartial.rb', line 45 def name @name end |