class Springy::Node

Attributes

as_json[R]
context[R]
json[R]

Public Class Methods

new(json, context = {}) click to toggle source
# File lib/springy/node.rb, line 7
def initialize(json, context = {})
  @json    = json
  @context = context
end

Public Instance Methods

context?(*args) click to toggle source
# File lib/springy/node.rb, line 16
def context?(*args)
  args.all? {|c| !!context[c] }
end
empty?() click to toggle source
# File lib/springy/node.rb, line 12
def empty?
  !@json.any?
end