class Dentaku::AST::Duration

Public Class Methods

max_param_count() click to toggle source
# File lib/dentaku/ast/functions/duration.rb, line 10
def self.max_param_count
  2
end
min_param_count() click to toggle source
# File lib/dentaku/ast/functions/duration.rb, line 6
def self.min_param_count
  2
end

Public Instance Methods

dependencies(context = {}) click to toggle source
# File lib/dentaku/ast/functions/duration.rb, line 43
def dependencies(context = {})
  value_node = @args.first
  value_node.dependencies(context)
end
type() click to toggle source
# File lib/dentaku/ast/functions/duration.rb, line 34
def type
  :duration
end
value(context = {}) click to toggle source
# File lib/dentaku/ast/functions/duration.rb, line 38
def value(context = {})
  value_node, unit_node = *@args
  Value.new(value_node.value(context), unit_node.identifier)
end