Class: Higan::Target

Inherits:
Object
  • Object
show all
Defined in:
lib/higan/target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**params) ⇒ Target

Returns a new instance of Target.



5
6
7
8
9
# File 'lib/higan/target.rb', line 5

def initialize(**params)
  params.each_pair do |k, v|
    self.send("#{k}=", v)
  end
end

Instance Attribute Details

#klassObject

Returns the value of attribute klass.



3
4
5
# File 'lib/higan/target.rb', line 3

def klass
  @klass
end

#pathObject

Returns the value of attribute path.



3
4
5
# File 'lib/higan/target.rb', line 3

def path
  @path
end

#rendererObject

Returns the value of attribute renderer.



3
4
5
# File 'lib/higan/target.rb', line 3

def renderer
  @renderer
end

#scopeObject

Returns the value of attribute scope.



3
4
5
# File 'lib/higan/target.rb', line 3

def scope
  @scope
end

#templateObject

Returns the value of attribute template.



3
4
5
# File 'lib/higan/target.rb', line 3

def template
  @template
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/higan/target.rb', line 3

def value
  @value
end

Instance Method Details

#element_listObject



11
12
13
# File 'lib/higan/target.rb', line 11

def element_list
  klass.send(scope)
end

#key(id) ⇒ Object



15
16
17
# File 'lib/higan/target.rb', line 15

def key(id)
  [klass, id].join('::')
end