Class: Bio::Registry::DB
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
Instance Method Summary collapse
- #[]=(tag, value) ⇒ Object
-
#initialize(dbname) ⇒ DB
constructor
A new instance of DB.
- #method_missing(meth_id) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth_id) ⇒ Object
250 251 252 |
# File 'lib/bio/io/registry.rb', line 250 def method_missing(meth_id) @property[meth_id.id2name] end |
Instance Attribute Details
#database ⇒ Object (readonly)
Returns the value of attribute database.
248 249 250 |
# File 'lib/bio/io/registry.rb', line 248 def database @database end |
Instance Method Details
#[]=(tag, value) ⇒ Object
254 255 256 |
# File 'lib/bio/io/registry.rb', line 254 def []=(tag, value) @property[tag] = value end |