Class: TermTime::TermInfo::String

Inherits:
Object
  • Object
show all
Defined in:
lib/termtime/terminfo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(v, db) ⇒ String

Returns a new instance of String.



22
23
24
25
26
# File 'lib/termtime/terminfo.rb', line 22

def initialize v, db
  @value = v
  @db = db
  freeze
end

Instance Attribute Details

#dbObject (readonly)

Returns the value of attribute db.



20
21
22
# File 'lib/termtime/terminfo.rb', line 20

def db
  @db
end

#valueObject (readonly)

Returns the value of attribute value.



20
21
22
# File 'lib/termtime/terminfo.rb', line 20

def value
  @value
end

Instance Method Details

#tinameObject



28
# File 'lib/termtime/terminfo.rb', line 28

def tiname; @db.tiname; end

#tparmObject



30
31
32
# File 'lib/termtime/terminfo.rb', line 30

def tparm(...)
  TermTime.tparm(value, ...)
end