Class: L10nizer::BasicNode

Inherits:
Object
  • Object
show all
Defined in:
lib/l10nizer/node.rb

Direct Known Subclasses

EvalNode, TextNode, WordNode

Instance Method Summary collapse

Constructor Details

#initialize(node, keygen = nil) ⇒ BasicNode

Returns a new instance of BasicNode.



18
19
20
21
# File 'lib/l10nizer/node.rb', line 18

def initialize(node, keygen=nil)
  @node   = node
  @keygen = keygen
end

Instance Method Details

#evaluated?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/l10nizer/node.rb', line 31

def evaluated?
  false
end

#l10nObject



23
24
25
# File 'lib/l10nizer/node.rb', line 23

def l10n
  {}
end

#string?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/l10nizer/node.rb', line 35

def string?
  false
end

#to_sObject



27
28
29
# File 'lib/l10nizer/node.rb', line 27

def to_s
  @node.text_value
end