Sha256: 63632c6e8faee86f4003a6762f1f03f0377b3b04e466ab117a7e4318f2a93e28

Contents?: true

Size: 736 Bytes

Versions: 10

Compression:

Stored size: 736 Bytes

Contents

# -*- coding: utf-8 -*-
module RubyToBlock
  module Block
    class HardwareSmalrubotV3ActionWithSec < CharacterMethodCall
      include HardwareOperation

      # rubocop:disable LineLength
      blocknize '^\s*' + CHAR_RE +
                'smalrubot_v3\.' + ACTION_RE +
                '\(\s*sec:\s*(\d+(?:\.\d+)?)\)' +
                '\s*$',
                statement: true, inline: true
      # rubocop:enable LineLength

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
smalruby-editor-0.2.4-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_smalrubot_v3_action_with_sec.rb
smalruby-editor-0.2.4 app/models/concerns/ruby_to_block/block/hardware_smalrubot_v3_action_with_sec.rb
smalruby-editor-0.2.3-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_smalrubot_v3_action_with_sec.rb
smalruby-editor-0.2.3 app/models/concerns/ruby_to_block/block/hardware_smalrubot_v3_action_with_sec.rb
smalruby-editor-0.2.2-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_smalrubot_v3_action_with_sec.rb
smalruby-editor-0.2.2 app/models/concerns/ruby_to_block/block/hardware_smalrubot_v3_action_with_sec.rb
smalruby-editor-0.2.1-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_smalrubot_v3_action_with_sec.rb
smalruby-editor-0.2.1 app/models/concerns/ruby_to_block/block/hardware_smalrubot_v3_action_with_sec.rb
smalruby-editor-0.2.0-x86-mingw32 app/models/concerns/ruby_to_block/block/hardware_smalrubot_v3_action_with_sec.rb
smalruby-editor-0.2.0 app/models/concerns/ruby_to_block/block/hardware_smalrubot_v3_action_with_sec.rb