Class: RSpec::Unit::Assertions::AssertionMessage::Literal

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/unit/assertions.rb

Instance Method Summary (collapse)

Constructor Details

- (Literal) initialize(value)

Returns a new instance of Literal



528
529
530
# File 'lib/rspec/unit/assertions.rb', line 528

def initialize(value)
  @value = value
end

Instance Method Details

- (Object) inspect



532
533
534
# File 'lib/rspec/unit/assertions.rb', line 532

def inspect
  @value.to_s
end