Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

improves encapsulation

  • Loading branch information...
commit 5b7795c1e6dda16b9ba62a59631b5bdfe38873e4 1 parent e752dd9
@superacidjax authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  lib/clear_eyes/version.rb
  2. +2 −1  lib/clear_eyes/view_helpers.rb
View
2  lib/clear_eyes/version.rb
@@ -1,3 +1,3 @@
module ClearEyes
- VERSION = "0.1.3"
+ VERSION = "0.1.4"
end
View
3  lib/clear_eyes/view_helpers.rb
@@ -1,7 +1,7 @@
module ClearEyes
module ViewHelpers
def self.included(base)
- attr_accessor :image, :options
+ base.send(:attr_accessor, :image, :options)
end
def r_image( pixel_ratio )
@@ -9,6 +9,7 @@ def r_image( pixel_ratio )
image_tag(self.image.insert(insert_on, "@#{pixel_ratio}x"), self.options)
end
+
def r_image_tag(image, options = {})
self.options = options
self.image = image
Please sign in to comment.
Something went wrong with that request. Please try again.