Skip to content

Commit

Permalink
Added attribute readers for Table, Assign nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
vic committed Dec 15, 2010
1 parent 3420c90 commit 8cce19e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/poison/bootstrap/syntax/operator.rb
Expand Up @@ -81,6 +81,8 @@ def visit(visitor)
end

class Assign < Node
attr_reader :name, :value

def initialize(name, value)
@name = name
@value = value
Expand Down
2 changes: 2 additions & 0 deletions lib/poison/bootstrap/syntax/value.rb
Expand Up @@ -93,6 +93,8 @@ def visit(visitor)
end

class Table < Literal
attr_reader :entries

def initialize(entries)
@entries = entries.dup
end
Expand Down

0 comments on commit 8cce19e

Please sign in to comment.