Skip to content

Commit

Permalink
Let's only use one style of hash syntax in a given file.
Browse files Browse the repository at this point in the history
  • Loading branch information
alext committed May 30, 2012
1 parent 9ec41f5 commit 066df2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/flows/inherits-someone-dies-without-will.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

multiple_choice :is_there_a_living_spouse_or_civil_partner? do
save_input_as :living_spouse_partner
option yes: :is_the_estate_worth_more_than_250000?
option :yes => :is_the_estate_worth_more_than_250000?
option :no => :are_there_living_children?
end

multiple_choice :is_the_estate_worth_more_than_250000? do
option :yes => :are_there_living_children?
option no: :partner_receives_all_of_the_estate
option :no => :partner_receives_all_of_the_estate
end

multiple_choice :are_there_living_children? do
Expand Down Expand Up @@ -71,22 +71,22 @@
end

multiple_choice :are_there_half_blood_brothers_or_sisters? do
option yes: :shared_equally_between_half_blood_brothers_sisters
option :yes => :shared_equally_between_half_blood_brothers_sisters
option :no => :are_there_grandparents_living?
end

multiple_choice :are_there_grandparents_living? do
option yes: :shared_equally_between_grandparents
option :yes => :shared_equally_between_grandparents
option :no => :are_there_any_living_aunts_or_uncles?
end

multiple_choice :are_there_any_living_aunts_or_uncles? do
option yes: :shared_equally_between_aunts_or_uncles
option :yes => :shared_equally_between_aunts_or_uncles
option :no => :are_there_any_living_half_aunts_or_uncles?
end

multiple_choice :are_there_any_living_half_aunts_or_uncles? do
option yes: :shared_equally_between_half_aunts_or_uncles
option :yes => :shared_equally_between_half_aunts_or_uncles
# TODO: Check
option :no => :everything_goes_to_crown
end
Expand Down

0 comments on commit 066df2a

Please sign in to comment.