Class: Ruleby::Core::Atom
- Inherits:
-
Object
- Object
- Ruleby::Core::Atom
- Defined in:
- lib/core/atoms.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
-
#slot ⇒ Object
readonly
Returns the value of attribute slot.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(tag, slot, template, block) ⇒ Atom
constructor
A new instance of Atom.
- #to_s ⇒ Object
Constructor Details
#initialize(tag, slot, template, block) ⇒ Atom
Returns a new instance of Atom.
19 20 21 22 23 24 |
# File 'lib/core/atoms.rb', line 19 def initialize(tag, slot, template, block) @tag = tag @slot = slot @template = template @proc = block end |
Instance Attribute Details
#proc ⇒ Object (readonly)
Returns the value of attribute proc.
17 18 19 |
# File 'lib/core/atoms.rb', line 17 def proc @proc end |
#slot ⇒ Object (readonly)
Returns the value of attribute slot.
17 18 19 |
# File 'lib/core/atoms.rb', line 17 def slot @slot end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
17 18 19 |
# File 'lib/core/atoms.rb', line 17 def tag @tag end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
17 18 19 |
# File 'lib/core/atoms.rb', line 17 def template @template end |
Instance Method Details
#to_s ⇒ Object
26 27 28 |
# File 'lib/core/atoms.rb', line 26 def to_s "#{self.class},#{@tag},#{@slot},#{@template}" end |