class RubyLint::DefinitionBuilder::RubyHash
Definition
builder for building Ruby hashes.
Public Instance Methods
build()
click to toggle source
Builds the definition for the Hash and assigns the members.
@return [RubyLint::Definition::RubyObject]
# File lib/ruby-lint/definition_builder/ruby_hash.rb, line 12 def build definition = create_container values.each do |pair| definition.add_definition(pair) end return definition end
container_type()
click to toggle source
@return [Symbol]
# File lib/ruby-lint/definition_builder/ruby_hash.rb, line 32 def container_type return :hash end
parents()
click to toggle source
@see RubyLint::DefinitionBuilder::RubyArray#parents
# File lib/ruby-lint/definition_builder/ruby_hash.rb, line 25 def parents return [vm.global_constant('Hash')] end