class TTY::Option::Section
Attributes
content[RW]
name[RW]
Public Class Methods
new(name, content = [])
click to toggle source
# File lib/tty/option/section.rb, line 8 def initialize(name, content = []) @name = name @content = content end
Public Instance Methods
empty?()
click to toggle source
# File lib/tty/option/section.rb, line 17 def empty? content.empty? end
to_a()
click to toggle source
# File lib/tty/option/section.rb, line 13 def to_a [name, content] end
to_s()
click to toggle source
# File lib/tty/option/section.rb, line 21 def to_s content end