Module: Leggy::Helpers::ClassMethods

Defined in:
lib/leggy/helpers.rb

Instance Method Summary collapse

Instance Method Details

#attr_accessor(*params) ⇒ Object



19
20
21
22
23
# File 'lib/leggy/helpers.rb', line 19

def attr_accessor(*params)
  @attr_accessors ||= []
  @attr_accessors.concat params
  super(*params)
end

#attr_accessorsObject



33
34
35
# File 'lib/leggy/helpers.rb', line 33

def attr_accessors
  @attr_accessors
end

#attr_reader(*params) ⇒ Object



7
8
9
10
11
# File 'lib/leggy/helpers.rb', line 7

def attr_reader(*params)
  @attr_readers ||= []
  @attr_readers.concat params
  super(*params)
end

#attr_readersObject



25
26
27
# File 'lib/leggy/helpers.rb', line 25

def attr_readers
  @attr_readers
end

#attr_writer(*params) ⇒ Object



13
14
15
16
17
# File 'lib/leggy/helpers.rb', line 13

def attr_writer(*params)
  @attr_writers ||= []
  @attr_writers.concat params
  super(*params)
end

#attr_writersObject



29
30
31
# File 'lib/leggy/helpers.rb', line 29

def attr_writers
  @attr_writers
end