lib/representable/binding.rb in representable-2.1.0 vs lib/representable/binding.rb in representable-2.1.1

- old
+ new

@@ -26,10 +26,10 @@ end attr_reader :user_options, :represented # TODO: make private/remove. def as # DISCUSS: private? - evaluate_option(:as) + @as ||= evaluate_option(:as) end # Retrieve value and write fragment to the doc. def compile_fragment(doc) evaluate_option(:writer, doc) do