Class: Fictive::Choice

Inherits:
Object
  • Object
show all
Defined in:
lib/fictive/choice.rb

Instance Method Summary collapse

Constructor Details

#initialize(edge) ⇒ Choice

Returns a new instance of Choice.



3
4
5
# File 'lib/fictive/choice.rb', line 3

def initialize(edge)
  @edge = edge
end

Instance Method Details

#idObject



7
8
9
# File 'lib/fictive/choice.rb', line 7

def id
  @edge.id
end