Class: Telegraph::Types::Node
- Inherits:
-
Object
- Object
- Telegraph::Types::Node
- Defined in:
- lib/telegraph/types/node.rb
Instance Method Summary collapse
-
#initialize(node) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(node) ⇒ Node
Returns a new instance of Node.
10 11 12 13 14 15 16 |
# File 'lib/telegraph/types/node.rb', line 10 def initialize(node) if node.is_a?(String) @text = node else super end end |