Class: Houston::Extensions::ProjectColumnDsl

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feature) ⇒ ProjectColumnDsl

Returns a new instance of ProjectColumnDsl.



299
300
301
# File 'lib/houston/boot/extensions.rb', line 299

def initialize(feature)
  @feature = feature
end

Instance Attribute Details

#featureObject (readonly)

Returns the value of attribute feature.



297
298
299
# File 'lib/houston/boot/extensions.rb', line 297

def feature
  @feature
end

Instance Method Details

#ability(&block) ⇒ Object



311
312
313
# File 'lib/houston/boot/extensions.rb', line 311

def ability(&block)
  feature.ability_block = block
end

#html(&block) ⇒ Object



307
308
309
# File 'lib/houston/boot/extensions.rb', line 307

def html(&block)
  feature.html_block = block
end

#name(value) ⇒ Object



303
304
305
# File 'lib/houston/boot/extensions.rb', line 303

def name(value)
  feature.name = value
end