Class: PeppersGhost::Ghost

Inherits:
Object
  • Object
show all
Defined in:
lib/peppers-ghost/ghost.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



6
7
8
# File 'lib/peppers-ghost/ghost.rb', line 6

def method_missing(method, *args, &block)
  attributes << method
end

Instance Method Details

#attributesObject



2
3
4
# File 'lib/peppers-ghost/ghost.rb', line 2

def attributes
  @attributes ||= []
end