Module: Waves::Renderers::Markaby::ViewMethods
- Defined in:
- lib/waves/layers/renderers/markaby.rb
Instance Method Summary collapse
Instance Method Details
#mab(string, assigns = {}) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/waves/layers/renderers/markaby.rb', line 25 def mab(string, assigns={}) builder = ::Markaby::Builder.new( assigns ) helper = Waves.main::Helpers[self.class.basename] builder. { include( helper ) } builder.instance_eval( string ) builder.to_s end |