diff options
| author | mo khan <mo@mokhan.ca> | 2013-12-27 10:16:24 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-12-27 10:16:24 -0700 |
| commit | 5acc5665f0ae4be8496061de524d3c173aefb071 (patch) | |
| tree | cac975e35fffe6e85149a97aa35d2014b08dc912 | |
| parent | 31da2f75460270239f9f7d805191db005d388ce2 (diff) | |
rename to expose binding.
| -rw-r--r-- | lib/nasty.rb | 2 | ||||
| -rw-r--r-- | lib/nasty/expose_binding.rb (renamed from lib/nasty/binding_behaviour.rb) | 2 | ||||
| -rw-r--r-- | spec/unit/expose_binding_spec.rb (renamed from spec/unit/binding_spec.rb) | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/nasty.rb b/lib/nasty.rb index f73cdee..740ae32 100644 --- a/lib/nasty.rb +++ b/lib/nasty.rb @@ -1,7 +1,7 @@ require "nasty/background_job" -require "nasty/binding_behaviour" require "nasty/command" require "nasty/composite_command" +require "nasty/expose_binding" require "nasty/kernel" require "nasty/log" require "nasty/object" diff --git a/lib/nasty/binding_behaviour.rb b/lib/nasty/expose_binding.rb index d043be0..5090b91 100644 --- a/lib/nasty/binding_behaviour.rb +++ b/lib/nasty/expose_binding.rb @@ -1,5 +1,5 @@ module Nasty - module BindingBehaviour + module ExposeBinding def get_binder binding end diff --git a/spec/unit/binding_spec.rb b/spec/unit/expose_binding_spec.rb index 5b51d08..873eefe 100644 --- a/spec/unit/binding_spec.rb +++ b/spec/unit/expose_binding_spec.rb @@ -1,13 +1,13 @@ require "spec_helper" module Nasty - describe BindingBehaviour do + describe ExposeBinding do it "exposes an objects private binding" do item = Object.new item.instance_eval do @message = "secret" end - item.extend(Nasty::BindingBehaviour) + item.extend(Nasty::ExposeBinding) binding = item.get_binder result = ERB.new("<%= @message %>").result(binding) result.should == "secret" |
