Class: TestHtmlFormatter::StubWriter

Inherits:
Object
  • Object
show all
Defined in:
test/test_util/html_parser.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

- (Object) method_missing(method_name, *args)



118
119
120
121
# File 'test/test_util/html_parser.rb', line 118

def method_missing(method_name, *args)
  @called = method_name  
  @arguments = args
end

Instance Attribute Details

- (Object) arguments (readonly)

Returns the value of attribute arguments



117
118
119
# File 'test/test_util/html_parser.rb', line 117

def arguments
  @arguments
end

- (Object) called (readonly)

Returns the value of attribute called



117
118
119
# File 'test/test_util/html_parser.rb', line 117

def called
  @called
end