Class: Totes::Subject

Inherits:
Noop
  • Object
show all
Defined in:
lib/totes/subject.rb

Instance Method Summary collapse

Constructor Details

#initialize(subject) ⇒ Subject

Returns a new instance of Subject.



6
7
8
# File 'lib/totes/subject.rb', line 6

def initialize(subject)
  @subject = subject
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



10
11
12
13
# File 'lib/totes/subject.rb', line 10

def method_missing(name, *args, &block)
  # puts "#{name.inspect}(#{args.map(&:inspect).join(",")})"
  @subject.__send__ name, *args, &block
end