Class: Cucumber::Core::Gherkin::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/gherkin/document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



8
9
10
# File 'lib/cucumber/core/gherkin/document.rb', line 8

def body
  @body
end

#uriObject (readonly)

Returns the value of attribute uri.



8
9
10
# File 'lib/cucumber/core/gherkin/document.rb', line 8

def uri
  @uri
end

Instance Method Details

#==(other) ⇒ Object



14
15
16
# File 'lib/cucumber/core/gherkin/document.rb', line 14

def ==(other)
  to_s == other.to_s
end

#to_sObject



10
11
12
# File 'lib/cucumber/core/gherkin/document.rb', line 10

def to_s
  body
end