Class: Meteor::Exception::NoSuchElementException

Inherits:
Object
  • Object
show all
Defined in:
lib/meteor.rb

Overview

Element Search Exception (要素検索例外)

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (NoSuchElementException) initialize(elm_name) - (NoSuchElementException) initialize(attr_name, attr_value) - (NoSuchElementException) initialize(elm_name, attr_name, attr_value) - (NoSuchElementException) initialize(attr_name1, attr_value1, attr_name2, attr_value2) - (NoSuchElementException) initialize(elm_name, attr_name1, attr_value1, attr_name2, attr_value2)

initializer (イニシャライザ)

Overloads:

  • - (NoSuchElementException) initialize(elm_name)

    Parameters:

    • elm_name (String)

      element name (要素名)

  • - (NoSuchElementException) initialize(attr_name, attr_value)

    Parameters:

    • attr_name (String)

      attribute name (属性名)

    • attr_value (String)

      attribute value (属性値)

  • - (NoSuchElementException) initialize(elm_name, attr_name, attr_value)

    Parameters:

    • elm_name (String)

      element name (要素名)

    • attr_name (String)

      attribute name (属性名)

    • attr_value (String)

      attribute value (属性値)

  • - (NoSuchElementException) initialize(attr_name1, attr_value1, attr_name2, attr_value2)

    Parameters:

    • attr_name1 (String)

      attribute name1 (属性名1)

    • attr_value1 (String)

      attribute value1 (属性値1)

    • attr_name2 (String)

      attribute name2 (属性名2)

    • attr_value2 (String)

      attribute value2 (属性値2)

  • - (NoSuchElementException) initialize(elm_name, attr_name1, attr_value1, attr_name2, attr_value2)

    Parameters:

    • elm_name (String)

      element name (要素名)

    • attr_name1 (String)

      attribute name1 (属性名1)

    • attr_value1 (String)

      attribute value1 (属性値1)

    • attr_name2 (String)

      attribute name2 (属性名2)

    • attr_value2 (String)

      attribute value2 (属性値2)



1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
# File 'lib/meteor.rb', line 1079

def initialize(*args)
  case args.length
    when ONE
      initialize_1(args[0])
    when TWO
      initialize_2(args[0], args[1])
    when THREE
      initialize_3(args[0], args[1], args[2])
    when FOUR
      initialize_4(args[0], args[1], args[2], args[3])
    when FIVE
      initialize_5(args[0], args[1], args[2], args[3], args[4])
  end
end

Instance Attribute Details

- (Object) message

String

message (メッセージ)



1054
1055
1056
# File 'lib/meteor.rb', line 1054

def message
  @message
end