Class: Ticket
- Inherits:
-
Object
- Object
- Ticket
- Defined in:
- lib/sequential_check_question/ruby_6/2.rb,
lib/sequential_check_question/ruby_6/3.rb
Instance Method Summary collapse
-
#initialize(fare) ⇒ Ticket
constructor
A new instance of Ticket.
Constructor Details
#initialize(fare) ⇒ Ticket
Returns a new instance of Ticket.
20 21 22 |
# File 'lib/sequential_check_question/ruby_6/2.rb', line 20 def initialize(fare) @fare = fare end |