From c4cdaf5157f726cfcd9462e93215744a7aa7061b Mon Sep 17 00:00:00 2001 From: Mani Tadayon Date: Thu, 5 Jan 2012 22:28:28 -0800 Subject: [PATCH] Fix method references in README Class methods should be referenced with 'Klass.method' while 'Klass#method' is used for instance methods. --- README.rdoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rdoc b/README.rdoc index 07d3b88..fdac06f 100644 --- a/README.rdoc +++ b/README.rdoc @@ -48,8 +48,8 @@ First create one or more of the following YAML files in the same directory to de # Yacht::Loader.to_classy_struct(:apply_whitelist? => true) # (by default the whitelist is ignored) # NOTE: the whitelist is ignored when using Yacht.my_key or Yacht['my_key'] - # you have to use Yacht::Loader#to_hash or - # Yacht::Loader#to_classy_struct to use the whitelist + # you have to use Yacht::Loader.to_hash or + # Yacht::Loader.to_classy_struct to use the whitelist - public_info # config/yacht/local.yml (optional) @@ -82,7 +82,7 @@ If you would like to access values stored in Yacht inside of javascript, there i # remember that any values exported to javascript will be visible to all visitors to your site - cookie_domain -Then use Yacht::Loader#to_js_snippet to create a string that can be eval'd or included in the DOM: +Then use Yacht::Loader.to_js_snippet to create a string that can be eval'd or included in the DOM: Yacht::Loader.to_js_snippet # => ";var Yacht = {\"cookie_domain\":\"example.com\"};" @@ -105,7 +105,7 @@ To use Yacht inside of Rails, just add an initializer to config/initializers # it makes sense to use your Rails environment names in Yacht Yacht::Loader.environment = Rails.env -When used inside of a Rails application, the yacht_js_snippet Rails helper is included in the global ApplicationHelper so you can use it in views. yacht_js_snippet wraps the string from Yacht::Loader#to_js_snippet in a script tag using Rails' +javascript_tag+ helper. +When used inside of a Rails application, the yacht_js_snippet Rails helper is included in the global ApplicationHelper so you can use it in views. yacht_js_snippet wraps the string from Yacht::Loader.to_js_snippet in a script tag using Rails' +javascript_tag+ helper. # inside a view or helper: yacht_js_snippet