Module: Media::Builder::Filter::Graph::ClassMethods
- Defined in:
- lib/media/builder/filter/graph.rb
Instance Method Summary collapse
Instance Method Details
#build(&blk) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/media/builder/filter/graph.rb', line 12 def build(&blk) graph = new if block_given? context = eval('self', blk.binding) graph.instance_variable_set(:@context, context) graph.instance_eval(&blk) end graph end |