Module: Coco::Options::Item
Instance Method Summary collapse
Instance Method Details
#alias ⇒ Object
6 7 8 |
# File 'lib/coco/options/item.rb', line 6 def alias @alias || name end |
#html_alias ⇒ Object
10 11 12 |
# File 'lib/coco/options/item.rb', line 10 def html_alias self.alias.to_s.tr("_", "-") end |
#private? ⇒ Boolean
14 15 16 |
# File 'lib/coco/options/item.rb', line 14 def private? @private == true end |
#public? ⇒ Boolean
18 19 20 |
# File 'lib/coco/options/item.rb', line 18 def public? !private? end |