class Middleman::Decorators::Base
Attributes
context[R]
h[R]
Public Class Methods
new(attributes, context)
click to toggle source
# File lib/middleman/decorators/base.rb, line 7 def initialize(attributes, context) @attributes = attributes @context = context @attributes.each do |key, val| define_singleton_method(key) { val } end end