Sha256: 3a06bbadede724f5b2453b6a08b70ba5522b06867ee550ca42961c8dac5eeda8

Contents?: true

Size: 514 Bytes

Versions: 8

Compression:

Stored size: 514 Bytes

Contents

module RubyToBlock
  module Block
    class HardwareButtonNotUsePullup < CharacterMethodCall
      include HardwareOperation

      blocknize '^\s*' + CHAR_RE +
                'button\(' + DIO_PIN_RE + '\)\.not_use_pullup\s*$',
                statement: true

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
smalruby-editor-0.1.24-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_button_not_use_pullup.rb
smalruby-editor-0.1.24 app/models/concerns/ruby_to_block/block/hardware_button_not_use_pullup.rb
smalruby-editor-0.1.23-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_button_not_use_pullup.rb
smalruby-editor-0.1.23 app/models/concerns/ruby_to_block/block/hardware_button_not_use_pullup.rb
smalruby-editor-0.1.22-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_button_not_use_pullup.rb
smalruby-editor-0.1.22 app/models/concerns/ruby_to_block/block/hardware_button_not_use_pullup.rb
smalruby-editor-0.1.21-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_button_not_use_pullup.rb
smalruby-editor-0.1.21 app/models/concerns/ruby_to_block/block/hardware_button_not_use_pullup.rb