Class: Cucumber::Wire::Snippet::Generator::MultilineArgClassName

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/wire/snippet.rb

Instance Method Summary collapse

Constructor Details

#initialize(arg) ⇒ MultilineArgClassName

Returns a new instance of MultilineArgClassName.



15
16
17
18
# File 'lib/cucumber/wire/snippet.rb', line 15

def initialize(arg)
  arg.describe_to(self)
  @result = ""
end

Instance Method Details

#data_tableObject



20
21
22
# File 'lib/cucumber/wire/snippet.rb', line 20

def data_table(*)
  @result = "Cucumber::MultilineArgument::DataTable"
end

#doc_stringObject



24
25
26
# File 'lib/cucumber/wire/snippet.rb', line 24

def doc_string(*)
  @result = "Cucumber::MultilineArgument::DocString"
end

#to_sObject



28
29
30
# File 'lib/cucumber/wire/snippet.rb', line 28

def to_s
  @result
end