Sha256: 3bfe14ee27dc7529a00434a17bd443400b55b231bb0e857a8688bd1a30b683e9

Contents?: true

Size: 540 Bytes

Versions: 35

Compression:

Stored size: 540 Bytes

Contents

# -*- coding: utf-8 -*-
module RubyToBlock
  module Block
    class HardwareRgbLedOff < CharacterMethodCall
      # rubocop:disable LineLength
      blocknize '^\s*' + CHAR_RE + 'rgb_led_(anode|cathode)\("(D[39])"\)\.off\s*$',
                statement: true
      # rubocop:enable LineLength

      def self.process_match_data(md, context)
        md2 = regexp.match(md[type])
        block = new(fields: { AC: md2[2], PIN: md2[3] })
        add_character_method_call_block(context, md2[1], block)
        true
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
smalruby-editor-0.1.24-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.24 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.23-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.23 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.22-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.22 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.21-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.21 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.20-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.20 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.19-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.19 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.18-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.18 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.17-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.17 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.16-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.16 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.15-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb
smalruby-editor-0.1.15 app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb