Skip to content

Commit

Permalink
Use call interface
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Mar 25, 2014
1 parent 4a16c90 commit d25057e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sprockets/directive_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ class DirectiveProcessor
attr_reader :header, :body

def self.call(input)
new.render(input)
new.call(input)
end

# `context` is a `Context` instance with methods that allow you to
# access the environment and append to the bundle. See `Context`
# for the complete API.
def render(input)
def call(input)
@context = input[:context]
@pathname = @context.pathname

Expand Down

0 comments on commit d25057e

Please sign in to comment.