Sha256: 7730291a879256f83f1d389ccc09abc30ae257c0cb4ab082d958e1e58cd131bd

Contents?: true

Size: 621 Bytes

Versions: 8

Compression:

Stored size: 621 Bytes

Contents

module SlackRubyBot
  module MVC
    module View
      class Base
        include ActiveSupport::Callbacks
        extend Forwardable

        class << self
          def inherited(klass) # :nodoc:
            super
          end
        end

        attr_reader :client, :data, :match

        def_delegators :@client, :say

        # Hand off the latest updated objects to the +model+ and +view+ and
        # update our +client+, +data+, and +match+ accessors.
        def use_args(client, data, match)
          @client = client
          @data = data
          @match = match
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
slack-ruby-bot-0.12.0 lib/slack-ruby-bot/mvc/view/base.rb
slack-ruby-bot-0.11.2 lib/slack-ruby-bot/mvc/view/base.rb
slack-ruby-bot-0.11.1 lib/slack-ruby-bot/mvc/view/base.rb
slack-ruby-bot-0.11.0 lib/slack-ruby-bot/mvc/view/base.rb
slack-ruby-bot-0.10.5 lib/slack-ruby-bot/mvc/view/base.rb
slack-ruby-bot-0.10.4 lib/slack-ruby-bot/mvc/view/base.rb
slack-ruby-bot-0.10.3 lib/slack-ruby-bot/mvc/view/base.rb
slack-ruby-bot-0.10.2 lib/slack-ruby-bot/mvc/view/base.rb