class EurekaBot::Tg::Controller::RepliesConcern::Markup

Attributes

context[R]
items[R]
options[R]

Public Class Methods

new(context, options={}) click to toggle source
# File lib/eureka_bot/tg/controller/concerns/replies_concern.rb, line 28
def initialize(context, options={})
  @context = context
  @options = options
  @items   = []
end

Public Instance Methods

method_missing(symbol, *args) click to toggle source
Calls superclass method
# File lib/eureka_bot/tg/controller/concerns/replies_concern.rb, line 38
def method_missing(symbol, *args)
  if context.respond_to?(symbol)
    context.send(symbol, *args)
  else
    super
  end
end
run(&block) click to toggle source
# File lib/eureka_bot/tg/controller/concerns/replies_concern.rb, line 34
def run(&block)
  @items = block.call(self)
end