Sha256: af96fb262c6ce04eb5eb278aa1d6907a2646ba46eefda6207e48866e3cc7ad02

Contents?: true

Size: 711 Bytes

Versions: 42

Compression:

Stored size: 711 Bytes

Contents

module RubyToBlock
  module Block
    class HardwareTwoWheelDriveCarSpeed < Value
      include CharacterOperation
      include HardwareOperation

      blocknize '^\s*' + CHAR_RE +
                'two_wheel_drive_car\(' + TWO_WHEEL_DRIVE_CAR_PIN_RE + '\)\.' +
                LOR_RE + '_speed\s*$',
                value: true

      def self.process_match_data(md, context)
        md2 = regexp.match(md[type])

        character = get_character(context, md2[1])
        return false if context.receiver && context.receiver != character

        block = new(fields: { PIN: md2[2], LOR: md2[3] })
        context.add_value(block)
        block.character = character

        true
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
smalruby-editor-0.4.1-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.4.2-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.4.2 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.4.1 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.4.0-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.4.0 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.5-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.5 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.4-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.4 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.3-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.3 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.2-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.2 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.1-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.1 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.0-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.3.0 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.2.7-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb
smalruby-editor-0.2.7 app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb