Class: Houston::Extensions::ProjectFeatureForm

Inherits:
Object
  • Object
show all
Defined in:
lib/houston/boot/extensions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



230
231
232
# File 'lib/houston/boot/extensions.rb', line 230

def name
  @name
end

#render_blockObject

Returns the value of attribute render_block.



230
231
232
# File 'lib/houston/boot/extensions.rb', line 230

def render_block
  @render_block
end

#slugObject

Returns the value of attribute slug.



230
231
232
# File 'lib/houston/boot/extensions.rb', line 230

def slug
  @slug
end

Instance Method Details

#render(view, f) ⇒ Object



232
233
234
# File 'lib/houston/boot/extensions.rb', line 232

def render(view, f)
  view.instance_exec(f, &render_block).html_safe
end