Class: UfBaseClass

Inherits:
Object
  • Object
show all
Defined in:
lib/ebngen/unifmt.rb

Direct Known Subclasses

Unifmt

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.attr_accessor(*vars) ⇒ Object



8
9
10
11
12
# File 'lib/ebngen/unifmt.rb', line 8

def self.attr_accessor(*vars)
  @attributes ||= []
  @attributes.concat vars
  super(*vars)
end

.attributesObject



14
15
16
# File 'lib/ebngen/unifmt.rb', line 14

def self.attributes
  @attributes
end

Instance Method Details

#attributesObject



18
19
20
# File 'lib/ebngen/unifmt.rb', line 18

def attributes
  self.class.attributes
end