class Crispy::CrispyReceivedMessage

Constants

CLASS_NAME
DELEGATABLE_METHODS
PP_CYCLE
PP_HEADER

Public Class Methods

new(method_name, *arguments, &attached_block) click to toggle source
# File lib/crispy/crispy_received_message.rb, line 12
def initialize method_name, *arguments, &attached_block
  @method_name = method_name
  @arguments = arguments
  @attached_block = attached_block
end

Public Instance Methods

==(other) click to toggle source
# File lib/crispy/crispy_received_message.rb, line 18
def == other
  @method_name == other.method_name &&
  @arguments == other.arguments # &&
  # @attached_block == other.attached_block
end
inspect()
Alias for: to_s
pretty_print(pp) click to toggle source
# File lib/crispy/crispy_received_message.rb, line 34
def pretty_print pp
  pp.group 2, PP_HEADER do
    pp.pp @method_name
    pp.text ','.freeze
    pp.breakable
    pp.text '*'.freeze
    pp.pp @arguments
    pp.text ']>'.freeze
  end
end
pretty_print_cycle(pp) click to toggle source
# File lib/crispy/crispy_received_message.rb, line 47
def pretty_print_cycle pp
  pp.text PP_CYCLE
end
to_s() click to toggle source
# File lib/crispy/crispy_received_message.rb, line 26
def to_s
  "#<#{CLASS_NAME}[#{@method_name.inspect}, *#{@arguments.inspect}]>"
end
Also aliased as: inspect