Sha256: ee734788c5f919a5c52bc2242869fcc5c3f6b5308d74f730530c05557b4eae7e
Contents?: true
Size: 416 Bytes
Versions: 20
Compression:
Stored size: 416 Bytes
Contents
require 'rails_blocks/blocks/renderer' module RailsBlocks module Blocks class Block include Blocks::Renderer attr_accessor :name attr_accessor :options attr_accessor :content def initialize(name) @name = name end def render ".#{klass}\n\t#{render_content}" end def render_content instance_eval &content end def klass @name end end end end
Version data entries
20 entries across 20 versions & 1 rubygems