Class: Cucumber::Messages::SimpleMessage

Inherits:
Message show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/spec/cucumber/messages/message/dummy_messages.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Message::Utils

included

Methods included from Message::Serialization

#to_h, #to_json

Methods included from Message::Deserialization

included

Constructor Details

#initialize(is_nil: nil, is_string: '', is_array: [], is_number: 0) ⇒ SimpleMessage

Returns a new instance of SimpleMessage.



7
8
9
10
11
12
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/spec/cucumber/messages/message/dummy_messages.rb', line 7

def initialize(is_nil: nil, is_string: '', is_array: [], is_number: 0)
  @is_nil = is_nil
  @is_string = is_string
  @is_array = is_array
  @is_number = is_number
end

Instance Attribute Details

#is_arrayObject (readonly)

Returns the value of attribute is_array.



5
6
7
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/spec/cucumber/messages/message/dummy_messages.rb', line 5

def is_array
  @is_array
end

#is_nilObject (readonly)

Returns the value of attribute is_nil.



5
6
7
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/spec/cucumber/messages/message/dummy_messages.rb', line 5

def is_nil
  @is_nil
end

#is_numberObject (readonly)

Returns the value of attribute is_number.



5
6
7
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/spec/cucumber/messages/message/dummy_messages.rb', line 5

def is_number
  @is_number
end

#is_stringObject (readonly)

Returns the value of attribute is_string.



5
6
7
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/spec/cucumber/messages/message/dummy_messages.rb', line 5

def is_string
  @is_string
end