Module: N4j::Attributes::ClassMethods

Defined in:
lib/n4j/attributes.rb

Instance Method Summary collapse

Instance Method Details

#attribute(name) ⇒ Object



16
17
18
19
# File 'lib/n4j/attributes.rb', line 16

def attribute(name)
  attributes << name.to_s
  define_attribute_methods [name.to_s]
end

#attributesObject



12
13
14
# File 'lib/n4j/attributes.rb', line 12

def attributes
  @attributes ||= Set.new
end