Module: CastingAttrAccessor::ClassMethods

Defined in:
lib/casting_attr_accessor.rb

Instance Method Summary collapse

Instance Method Details

#casting_attr_accessor(*args) ⇒ Object



23
24
25
26
27
28
# File 'lib/casting_attr_accessor.rb', line 23

def casting_attr_accessor(*args)
  parser_for_attributes(*args) do |parser|
    define_readers(parser)
    define_writers(parser)
  end
end

#casting_attr_reader(*args) ⇒ Object



11
12
13
14
15
# File 'lib/casting_attr_accessor.rb', line 11

def casting_attr_reader(*args)
  parser_for_attributes(*args) do |parser|
    define_readers(parser)
  end
end