Method: GatewaySupport#features
- Defined in:
- lib/support/gateway_support.rb
#features ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/support/gateway_support.rb', line 22 def features width = 15 print "Name".center(width + 20) ACTIONS.each{|f| print "#{f.to_s.capitalize.center(width)}" } puts each_gateway do |g| print "#{g.display_name.ljust(width + 20)}" ACTIONS.each do |f| print "#{(g.instance_methods.include?(f.to_s) ? "Y" : "N").center(width)}" end puts end end |