Class: TermTime::TermInfo::Number

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(v, db) ⇒ Number

Returns a new instance of Number.



10
11
12
13
14
# File 'lib/termtime/terminfo.rb', line 10

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

Instance Attribute Details

#dbObject (readonly)

Returns the value of attribute db.



8
9
10
# File 'lib/termtime/terminfo.rb', line 8

def db
  @db
end

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/termtime/terminfo.rb', line 8

def value
  @value
end

Instance Method Details

#tinameObject



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

def tiname; @db.tiname; end