integration_spec/dummy/app/presenters/home/show.rb in fierce-0.1.3 vs integration_spec/dummy/app/presenters/home/show.rb in fierce-0.1.4
- old
+ new
@@ -1,22 +1,20 @@
-module Presenters
- module Home
- class Show
- attr_reader :view_model
+module Home
+ class Show
+ attr_reader :view_model
- def initialize(view_model)
- @view_model = view_model
- end
+ def initialize(view_model)
+ @view_model = view_model
+ end
- def loop_count
- view_model.loop_it
- end
+ def loop_count
+ view_model.loop_it
+ end
- def loops
- (1..loop_count).to_a.map{|n| Looplet.new(n) }
- end
+ def loops
+ (1..loop_count).to_a.map{|n| Looplet.new(n) }
+ end
- class Looplet < Struct.new(:n)
- end
+ class Looplet < Struct.new(:n)
end
end
-end
\ No newline at end of file
+end