Class: TermTime::TermInfo::Number
- Inherits:
-
Object
- Object
- TermTime::TermInfo::Number
- Defined in:
- lib/termtime/terminfo.rb
Instance Attribute Summary collapse
-
#db ⇒ Object
readonly
Returns the value of attribute db.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(v, db) ⇒ Number
constructor
A new instance of Number.
- #tiname ⇒ Object
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
#db ⇒ Object (readonly)
Returns the value of attribute db.
8 9 10 |
# File 'lib/termtime/terminfo.rb', line 8 def db @db end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/termtime/terminfo.rb', line 8 def value @value end |
Instance Method Details
#tiname ⇒ Object
16 |
# File 'lib/termtime/terminfo.rb', line 16 def tiname; @db.tiname; end |