Module: Ghaki::Account::DB_Port
Instance Attribute Summary collapse
-
#db_port ⇒ Object
Returns the value of attribute db_port.
Instance Method Summary collapse
-
#valid_db_port? ⇒ Boolean
———————————————————————.
Methods included from SynOpts
Instance Attribute Details
#db_port ⇒ Object
Returns the value of attribute db_port.
11 12 13 |
# File 'lib/ghaki/account/db_port.rb', line 11 def db_port @db_port end |
Instance Method Details
#valid_db_port? ⇒ Boolean
14 15 16 17 18 |
# File 'lib/ghaki/account/db_port.rb', line 14 def valid_db_port? return true if @db_port.nil? return true if @db_port.to_s =~ %r{\A\d+\z}o return false end |