class Nidyx::Pointer

Attributes

path[R]
source[R]

Public Class Methods

new(str) click to toggle source
# File lib/nidyx/pointer.rb, line 6
def initialize(str)
  match = /^(?<source>.*)#\/*(?<path>.*)$/.match(str)
  @source = match[:source]
  @path = match[:path].split("/")
end

Public Instance Methods

to_s() click to toggle source
# File lib/nidyx/pointer.rb, line 12
def to_s
  puts "source: #{source}"
  puts "path: #{path}"
end