Class: PointRb::Actions::ShowPointRbVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/pointrb/actions/show_pointrb_version.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ ShowPointRbVersion

Returns a new instance of ShowPointRbVersion.



4
5
6
# File 'lib/pointrb/actions/show_pointrb_version.rb', line 4

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



8
9
10
11
# File 'lib/pointrb/actions/show_pointrb_version.rb', line 8

def call(env)
  puts "Version: #{PointRb::VERSION}"
  @app.call(env)
end