Class: Clack::Core::GroupOption

Inherits:
Data
  • Object
show all
Defined in:
lib/clack/core/options_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#disabledObject (readonly)

Returns the value of attribute disabled

Returns:

  • (Object)

    the current value of disabled



25
26
27
# File 'lib/clack/core/options_helper.rb', line 25

def disabled
  @disabled
end

#groupObject (readonly)

Returns the value of attribute group

Returns:

  • (Object)

    the current value of group



25
26
27
# File 'lib/clack/core/options_helper.rb', line 25

def group
  @group
end

#hintObject (readonly)

Returns the value of attribute hint

Returns:

  • (Object)

    the current value of hint



25
26
27
# File 'lib/clack/core/options_helper.rb', line 25

def hint
  @hint
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



25
26
27
# File 'lib/clack/core/options_helper.rb', line 25

def label
  @label
end

#last_in_groupObject (readonly)

Returns the value of attribute last_in_group

Returns:

  • (Object)

    the current value of last_in_group



25
26
27
# File 'lib/clack/core/options_helper.rb', line 25

def last_in_group
  @last_in_group
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



25
26
27
# File 'lib/clack/core/options_helper.rb', line 25

def value
  @value
end

Instance Method Details

#[](key) ⇒ Object



27
# File 'lib/clack/core/options_helper.rb', line 27

def [](key) = to_h[key]

#to_sObject



26
# File 'lib/clack/core/options_helper.rb', line 26

def to_s = label.to_s