ruby-x/rubyx-arm · machine_code.rb
ruby logo
def main_start context
      entry = Register::Block.new("main_entry",nil,nil)
      entry.add_code mov(  :fp ,  0 )
      entry.add_code call( context.function )
      entry
    end
Similar code snippets
1.
ruby-x/rubyx · dynamic_call.rb
Match rating: 50.15% · See similar code snippets
ruby logo
def to_risc(compiler)
      entry = @cache_entry
      compiler.add_constant( entry )
      return_label = Risc.label(self, "continue_#{object_id}")
      compiler.build("DynamicCall") do
        return_address! << return_label
        next_message! << message[:next_message]
        next_message[:return_address] << return_address
        message << message[:next_message]
        cache_entry! << entry
        cache_entry << cache_entry[:cached_method]
        add_code Risc::DynamicJump.new("DynamicCall", cache_entry )
        add_code return_label
      end
    end
2.
arashm/PoParser · po.rb
Match rating: 49.14% · See similar code snippets
ruby logo
def add_entry(entry)
      return add_header_entry(entry) if entry[:msgid] && entry[:msgid].empty?

      @entries << Entry.new(entry)
    end
3.
puppetlabs/puppet · inifile.rb
Match rating: 48.58% · See similar code snippets
ruby logo
def find_entry(key)
      @entries.each do |entry|
        return entry if entry.is_a?(Array) && entry[0] == key
      end
      nil
    end
4.
scrapper/perobs · BigHash.rb
Match rating: 47.02% · See similar code snippets
ruby logo
def each(&block)
      @btree.each do |index, entry|
        if entry.is_a?(Collisions)
          break unless entry.each do |c_entry|
            yield(c_entry.key, c_entry.value)
          end
        else
          yield(entry.key, entry.value)
        end
      end
    end
5.
jonathanpike/mako · feed_constructor.rb
Match rating: 46.6% · See similar code snippets
ruby logo
def entry_summary(entry)
      !entry.content || entry.content.empty? ? entry.summary : entry.content
    end
6.
jgoulah/knife-lastrun · lastrun.rb
Match rating: 46.44% · See similar code snippets
ruby logo
def header(*args)
        entry = []
        args.each do |arg|
          entry << h.color(arg, :bold)
        end
        entry
    end
7.
gtolle/stripe-iiftoqbo · parser.rb
Match rating: 45.69% · See similar code snippets
ruby logo
def parse_data(fields)
      definition = @definitions[fields[0]]

      entry = Entry.new
      entry.type = fields[0]
      
      fields[1..-1].each_with_index do |field, idx|
        entry.send(definition[idx] + "=", field)
      end

      entry.amount = BigDecimal.new(entry.amount) if entry.amount
      entry.date = Date.strptime(entry.date, "%m/%d/%Y") if entry.date

      @entries.push(entry)
    end
8.
blambeau/polygon · entry.rb
Match rating: 45.46% · See similar code snippets
ruby logo
def /(path)
      entry = Entry.new(root, self.relative_path / path, options)
      if entry.path.inside?(root)
        entry
      else
        nil
      end
    end
9.
simonc/memfs · file_system.rb
Match rating: 45.18% · See similar code snippets
ruby logo
def touch(*paths)
      paths.each do |path|
        entry = find(path)

        unless entry
          entry = Fake::File.new(path)
          parent_dir = find_parent!(path)
          parent_dir.add_entry entry
        end

        entry.touch
      end
    end
10.
SecureBrain/ruby_apk · apk.rb
Match rating: 45.1% · See similar code snippets
ruby logo
def entry(name)
      entry = @zip.find_entry(name)
      raise NotFoundError, "'#{name}'" if entry.nil?
      return entry
    end