Class: Jig::AGap

Inherits:
Gap
  • Object
show all
Defined in:
lib/jig/xml.rb

Constant Summary

Constants inherited from Gap

Gap::ATTRS, Gap::GAP

Instance Attribute Summary collapse

Attributes inherited from Gap

#filter, #name

Instance Method Summary collapse

Methods inherited from Gap

#==, comment, #inspect, #rename, #terse_inspect, wrap

Constructor Details

#initialize(name, aname) ⇒ AGap

Returns a new instance of AGap.



91
92
93
94
# File 'lib/jig/xml.rb', line 91

def initialize(name, aname)
  super(name)
  self.aname = aname
end

Instance Attribute Details

#anameObject

Returns the value of attribute aname.



89
90
91
# File 'lib/jig/xml.rb', line 89

def aname
  @aname
end

Instance Method Details

#fill(fill) ⇒ Object



96
97
98
# File 'lib/jig/xml.rb', line 96

def fill(fill)
  Jig::XML.attribute(aname, fill)
end