Class: Cucumber::Ast::PyString::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/ast/py_string.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



23
24
25
# File 'lib/cucumber/ast/py_string.rb', line 23

def initialize
  @string = ''
end

Instance Attribute Details

#stringObject (readonly)

Returns the value of attribute string.



21
22
23
# File 'lib/cucumber/ast/py_string.rb', line 21

def string
  @string
end

Instance Method Details

#eofObject



31
32
# File 'lib/cucumber/ast/py_string.rb', line 31

def eof
end

#py_string(string, line_number) ⇒ Object



27
28
29
# File 'lib/cucumber/ast/py_string.rb', line 27

def py_string(string, line_number)
  @string = string
end