Class: Momo::Reference

Inherits:
Object
  • Object
show all
Defined in:
lib/momo/reference.rb

Instance Method Summary collapse

Constructor Details

#initialize(res) ⇒ Reference

Returns a new instance of Reference.



4
5
6
# File 'lib/momo/reference.rb', line 4

def initialize(res)
	@res = res
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



12
13
14
# File 'lib/momo/reference.rb', line 12

def method_missing(name, *args, &block)
	puts "Ref missing #{name}"
end

Instance Method Details

#representationObject



8
9
10
# File 'lib/momo/reference.rb', line 8

def representation
	{"Ref" => @res}
end