Module: Coco::Options::Item

Extended by:
ActiveSupport::Concern
Included in:
Group, Option
Defined in:
lib/coco/options/item.rb

Instance Method Summary collapse

Instance Method Details

#aliasObject



6
7
8
# File 'lib/coco/options/item.rb', line 6

def alias
  @alias || name
end

#html_aliasObject



10
11
12
# File 'lib/coco/options/item.rb', line 10

def html_alias
  self.alias.to_s.tr("_", "-")
end

#private?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/coco/options/item.rb', line 14

def private?
  @private == true
end

#public?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/coco/options/item.rb', line 18

def public?
  !private?
end