Sha256: 61ecfb205afa99a4716beb9d10fab190fa908ea57dd73cb92ec4df1344227557

Contents?: true

Size: 549 Bytes

Versions: 34

Compression:

Stored size: 549 Bytes

Contents

# -*- coding: utf-8 -*-
module RubyToBlock
  module Block
    class HardwareRgbLedTurnOff < CharacterMethodCall
      # rubocop:disable LineLength
      blocknize '^\s*' + CHAR_RE + 'rgb_led_(anode|cathode)\("(D[39])"\)\.turn_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

34 entries across 34 versions & 1 rubygems

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