Parent

Methods

Object

Public Instance Methods

or_ask( *args, &details ) click to toggle source

Tries this object as a first_answer for a HighLine::Question. See that attribute for details.

Warning: This Object will be passed to String() before set.

    # File lib/highline/import.rb, line 36
36:   def or_ask( *args, &details )
37:     ask(*args) do |question|
38:       question.first_answer = String(self) unless nil?
39:       
40:       details.call(question) unless details.nil?
41:     end
42:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.