Class: Hospodar::Builder::Strategies::Translate::Tracer

Inherits:
Struct
  • Object
show all
Defined in:
lib/hospodar/builder/strategies/translate.rb

Overview

Collects method calls in a given block

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *attrs) ⇒ Object



10
11
12
# File 'lib/hospodar/builder/strategies/translate.rb', line 10

def method_missing(method_name, *attrs)
  yielder << [method_name, attrs.first]
end

Instance Attribute Details

#yielderObject

Returns the value of attribute yielder

Returns:

  • (Object)

    the current value of yielder



9
10
11
# File 'lib/hospodar/builder/strategies/translate.rb', line 9

def yielder
  @yielder
end

Instance Method Details

#respond_to_missing?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/hospodar/builder/strategies/translate.rb', line 14

def respond_to_missing?
  true
end